下載了workman的 聊天室框架,在運(yùn)行了2天后,由于客戶端連不上,
服務(wù)端出現(xiàn)了底下錯(cuò)誤
php start.php start
Workerman start in DEBUG mode
----------------------- WORKERMAN -----------------------------
Workerman version:3.3.4 PHP version:5.6.25
------------------------ WORKERS -------------------------------
user worker listen processes status
root ChatGateway websocket://0.0.0.0:7272 4
----------------------------------------------------------------
Press Ctrl-C to quit. Start success.
error opcode 7 and close websocket connection. Buffer:e728781c
error opcode 7 and close websocket connection. Buffer:c747e8df
error opcode 7 and close websocket connection. Buffer:27ab8170
error opcode 3 and close websocket connection. Buffer:2349ddcd
error opcode 4 and close websocket connection. Buffer:845e8d7b
error opcode 11 and close websocket connection. Buffer:1bd45dc2
error opcode 6 and close websocket connection. Buffer:564d23ed
重啟服務(wù)后就正常了,請(qǐng)問(wèn)這要怎解決此類問(wèn)題?
我的windows版也遇到這個(gè)問(wèn)題 CMD窗口中不定時(shí)的出現(xiàn)“error opcode 6 and close websocket connection. ”,客戶端是IE11 ,chrome 無(wú)此問(wèn)題。
我的是windows版本,線上運(yùn)行時(shí)間一長(zhǎng)就會(huì)出現(xiàn)這個(gè)問(wèn)題,有的用戶能發(fā)言,有的用戶不能發(fā)言,重啟一下就好了。
Press Ctrl-C to quit. Start success.
error opcode 5 and close websocket connection
error opcode 12 and close websocket connection
error opcode 4 and close websocket connection
error opcode 4 and close websocket connection
error opcode 15 and close websocket connection
error opcode 5 and close websocket connection
error opcode 15 and close websocket connection
error opcode 6 and close websocket connection
error opcode 7 and close websocket connection
error opcode 3 and close websocket connection
error opcode 4 and close websocket connection
error opcode 12 and close websocket connection
error opcode 3 and close websocket connection
error opcode 7 and close websocket connection
error opcode 15 and close websocket connection
error opcode 15 and close websocket connection
error opcode 7 and close websocket connection
[attach]396[/attach]
因?yàn)閭鱽?lái)的opcode貌似不固定 無(wú)法判斷。請(qǐng)問(wèn)能不能把源文件中第158行的 $connection->close(); 刪除掉 來(lái)避免掉線 。刪除后是否有影響?