Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

websocket在setting添加“open_websocket_close_frame”后 关闭websocket报错 #1222

Closed
zengzhichao opened this issue Feb 21, 2020 · 2 comments · Fixed by swoft-cloud/swoft-component#569
Assignees
Milestone

Comments

@zengzhichao
Copy link

Q A
Bug report? yes
Feature request? no
Swoft version 2.0.8 (by php bin/swoft -V)
Swoole version 4.4.14 (by php --ri swoole)
PHP version 7.3.0 (by php -v)
Runtime environment Ubuntu

Describe the bug
在bean.php wsServer setting添加“'open_websocket_close_frame' => true”后 客户端主动关闭连接后报错

Screenshots
image
image

Details
错误信息:{"messages":"trace[WsMessageExceptionHandler.php:38] Ws server error(parse message error 'json_decode error: Syntax error At /mnt/hgfs/share/websocket/vendor/swoft/websocket-server/src/WsMessageDispatcher.php line 97)","context":[],"level":400,"level_name":"error","channel":"swoft","datetime":"2020-02-21 16:12:30","event":null,"tid":8,"cid":8,"traceid":"","spanid":"","parentid":""}

@inhere
Copy link
Member

inhere commented Feb 22, 2020

OK 我兼容下

@inhere inhere added this to the v2.0.9 milestone Feb 22, 2020
@zengzhichao
Copy link
Author

OK 我兼容下

好的 感谢

inhere added a commit to swoft-cloud/swoft-websocket-server that referenced this issue Apr 13, 2020
@inhere inhere added bug: fixed bug fixed bug and removed swoft: event labels Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants