客户端环境是:Quick 3.2, 通信是用lua-websocket
为了支持ipv6,我把curl和websocket库升级到3.11.1后,通信握手成功,但是调用websocket的send()方法后,收到的消息就是连接断开
Log如下:
[LUA-print] 2017-08-09 18
26[INFO]进行了消息注册,eventName= push@pay
WebSocket (004F0CE8) onConnectionError …
Ready state is closing or was closed, code=2, quit websocket thread!
NOTICE: lws_context_destroy
WebSocket (004F0CE8) onConnectionClosed …
WebSocket thread exit, helper instance: 054B66A8
[LUA-print] 2017-08-09 1828[ERROR]websocket error!
[LUA-print] 2017-08-09 1828[INFO]websocket close!===========================
[WebSocket::init] _host: 192.168.0.118, _port: 8957, _path: /websocket
WebSocket thread start, helper instance: 056F0BB0
[LUA-print] 2017-08-09 1831[INFO]after create websocket, address: ws://192.1
68.0.118:8957/websocket
NOTICE: Initial logging level 967
NOTICE: Libwebsockets version: 1.6.0 unknown-build-hash
NOTICE: IPV6 not compiled in
NOTICE: libev support not compiled in
NOTICE: mem: per-conn: 280 bytes + protocol rx buf
[LUA-print] 2017-08-09 18
31[INFO]succ to websocket open, host=192.168.0.118:
8957, address=ws://192.168.0.118:8957/websocket
[LUA-print] 2017-08-09 1858[INFO]-----------------播放音效----- music/so
und/Button.mp3
[LUA-print] 2017-08-09 1858[INFO]-------------------userName:123, password:1
23
[LUA-print] 2017-08-09 1858[INFO]发送的actionName:user@login, userName=123&
password=123
Safely done, msg(1)!
msg(1) append: 0 + 66 = 66
msg(1) was totally sent!WebSocket (004F0D98) onConnectionClosed …
NOTICE: lws_context_destroy
26[INFO]进行了消息注册,eventName= push@pay