Workerman process thread management issues

I would like to ask the elder in the industry that workerman maintains a long connection on the client. If the client is disconnected at this time (not actively disconnected), the thread occupied by the client will not be reclaimed. When the client reconnects to the network and connects to workerman, it will reoccupy another thread. Could you tell me how to deal with this situation?


use heartbeat to disconnect if you do not receive data from the client within a certain period of time

Menu