The onClose event cannot be triggered by the direct disconnection of swoole websocket.

php: 7.0.29
swoole: 2.1.3
linux: ubuntu16.04
swoole Startup Settings" daemonize" = > 0, "worker_num" = > 2

I use a Mini Program websocket.. Under normal circumstances, Mini Program shuts down can trigger onClose events.
but if I disconnect wifi. directly It can"t be triggered. I saw the same situation on the Internet. No solution has been given.
communities that mention swoole sequentially are hard to use. I can"t bind my cell phone. I can"t send a post. All kinds of mistakes.

Mar.05,2021

set heartbeat detection time to try
array (

)
'heartbeat_idle_time' => 600,
'heartbeat_check_interval' => 60,

);
https://wiki.swoole.com/wiki/.

Menu