Disables 'permessage-deflate' extension for WebSocket temporarily. (#16366)

Currently, we couldn't find out the exact reason.
libwebsockets official said it's probably an issue of user code since 'libwebsockets' passed AutoBahn stressed Test.
This commit is contained in:
James Chen 2016-08-15 13:59:01 +08:00 committed by minggo
parent 12d022d6ea
commit 020745ee2e
1 changed files with 9 additions and 1 deletions

View File

@ -595,7 +595,15 @@ void WebSocket::onSubThreadStarted()
info.port = CONTEXT_PORT_NO_LISTEN;
info.protocols = _wsProtocols;
info.extensions = exts;
// FIXME: Disable 'permessage-deflate' extension temporarily because of issues:
// https://github.com/cocos2d/cocos2d-x/issues/16045, https://github.com/cocos2d/cocos2d-x/issues/15767
// libwebsockets issue: https://github.com/warmcat/libwebsockets/issues/593
// Currently, we couldn't find out the exact reason.
// libwebsockets official said it's probably an issue of user code
// since 'libwebsockets' passed AutoBahn stressed Test.
// info.extensions = exts;
info.gid = -1;
info.uid = -1;