After the swoole server has not communicated for a long time, when the client connects again, the client cannot connect. You need to kill the process and then open it again.

after the swoole server has not communicated for a long time, when the client connects again, the process needs to be kill off and then reopened. What is the reason for this?

Mar.26,2021

your situation is similar to mine, except that I can connect to socket.. But can not send data, after query, this problem seems to be the problem of mysql connection. Mysql maintains a connection for 8 hours by default. If it times out, it will actively disconnect the mysql connection,


I did not use the mysql connection, and for a long time it will be about 10 minutes

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e46d4d-44bfc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e46d4d-44bfc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?