Mac开启outgoing connections(Client) websockets握手失败 的问题

依然使用 cocos2dx-3.15 rc0 ,开启App Sandbox中,勾选 Outgoing Connections(Client)
cpp-test 标题 19 下 的第三个测试 websocketTest 握手失败。LOG 如下(注释了其他两个连接,只连接第一个 wss://echo.websocket.org【ws 的也报错】):
D/WebSocket.cpp (415): WebSocket thread start, helper instance: 0x608000072920
D/WebSocket.cpp (167): NOTICE: Initial logging level 911

D/WebSocket.cpp (167): NOTICE: Libwebsockets version: 2.1.0 james@James-Chen.local-v3.4-139-gbdcf7f8

D/WebSocket.cpp (167): NOTICE: IPV6 compiled in and enabled

D/WebSocket.cpp (167): NOTICE: libev support not compiled in

D/WebSocket.cpp (167): NOTICE: libuv support not compiled in

D/WebSocket.cpp (167): NOTICE: Threads: 1 each 4864 fds

D/WebSocket.cpp (167): NOTICE: mem: platform fd map: 38912 bytes

D/WebSocket.cpp (167): NOTICE: Compiled with OpenSSL support

D/WebSocket.cpp (167): NOTICE: mem: per-conn: 512 bytes + protocol rx buf

D/WebSocket.cpp (896): scheme: wss, host: echo.websocket.org, port: 0, path:
D/WebSocket.cpp (167): NOTICE: Creating Vhost ‘default’ port -1, 2 protocols, IPv6 on

D/WebSocket.cpp (167): NOTICE: lws_protocol_init

2017-04-26 19:53:34.831854 cpp-tests Mac[25907:910491] IMKInputSession presentFunctionRowItemTextInputViewWithEndpoint:completionHandler: : NO NSRemoteViewController to client, NSError=Error Domain=NSCocoaErrorDomain Code=4099 “The connection from pid 0 was invalidated from this process.” UserInfo={NSDebugDescription=The connection from pid 0 was invalidated from this process.}, com.apple.inputmethod.EmojiFunctionRowItem
2017-04-26 19:53:34.832188 cpp-tests Mac[25907:910491] IMKInputSession presentFunctionRowItemTextInputViewWithEndpoint:completionHandler: : NO NSRemoteViewController to client, NSError=Error Domain=NSCocoaErrorDomain Code=4099 “The connection from pid 0 was invalidated from this process.” UserInfo={NSDebugDescription=The connection from pid 0 was invalidated from this process.}, com.apple.inputmethod.EmojiFunctionRowItem
2017-04-26 19:53:34.832422 cpp-tests Mac[25907:910491] IMKInputSession presentFunctionRowItemTextInputViewWithEndpoint:completionHandler: : NO NSRemoteViewController to client, NSError=Error Domain=NSCocoaErrorDomain Code=4099 “The connection from pid 0 was invalidated from this process.” UserInfo={NSDebugDescription=The connection from pid 0 was invalidated from this process.}, com.apple.inputmethod.EmojiFunctionRowItem
2017-04-26 19:53:34.832695 cpp-tests Mac[25907:910491] IMKInputSession presentFunctionRowItemTextInputViewWithEndpoint:completionHandler: : NO NSRemoteViewController to client, NSError=Error Domain=NSCocoaErrorDomain Code=4099 “The connection from pid 0 was invalidated from this process.” UserInfo={NSDebugDescription=The connection from pid 0 was invalidated from this process.}, com.apple.inputmethod.EmojiFunctionRowItem
2017-04-26 19:53:34.837520 cpp-tests Mac[25907:910491] IMKInputSession presentFunctionRowItemTextInputViewWithEndpoint:completionHandler: : NO NSRemoteViewController to client, NSError=Error Domain=NSCocoaErrorDomain Code=4099 “The connection from pid 0 was invalidated from this process.” UserInfo={NSDebugDescription=The connection from pid 0 was invalidated from this process.}, com.apple.inputmethod.EmojiFunctionRowItem
D/WebSocket.cpp (1338): protocol init…D/WebSocket.cpp (1350): WebSocket (0x613000018a00) Unhandled websocket event: 32
D/WebSocket.cpp (1341): protocol init…D/WebSocket.cpp (1338): protocol init…D/WebSocket.cpp (1335): protocol init…D/WebSocket.cpp (1341): protocol init…D/WebSocket.cpp (1350): WebSocket (0x613000018a00) Unhandled websocket event: 29

D/WebSocket.cpp (167): ERR: ERROR on binding fd 17 to port 0 (-1 1)

D/WebSocket.cpp (1338): protocol init…D/WebSocket.cpp (1350): WebSocket (0x613000018a00) Unhandled websocket event: 33
D/WebSocket.cpp (1341): protocol init…D/WebSocket.cpp (1220): WebSocket (0x613000018a00) onConnectionError, state: 0 …
D/WebSocket.cpp (1249): WebSocket (0x613000018a00) onConnectionClosed, state: 2 …
D/WebSocket.cpp (1279): onConnectionClosed, WebSocket (0x613000018a00) is closing by server.
D/WebSocket.cpp (1302): WebSocket (0x613000018a00) onConnectionClosed DONE!
D/WebSocket.cpp (1249): WebSocket (0x613000018a00) onConnectionClosed, state: 3 …
D/WebSocket.cpp (1220): WebSocket (0x613000018a00) onConnectionError, state: 3 …
Error was fired, error code: 1
onClose: websocket instance (0x613000018a00) closed.
D/WebSocket.cpp (547): In the destructor of WebSocket (0x613000018a00)
WebSocketTest ref: 3

请问,有没有办法解决?

I am experiencing this problem as well. After some debugging, it appears to be something wrong with the vhost.