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

.
Menu