Home > Back-end >  The server how to take the initiative to close the connection?
The server how to take the initiative to close the connection?

Time:11-03

Server: tomcat7.0.34
Client websocket object has a close method, if the network unobstructed, the server will trigger onclose method, excuse me, if not initiated by the client to close the request, the server disconnected how active? (your connection to free resources fully in time)

CodePudding user response:

Don't understand? The bottom is to extend the TCP protocol, support two-way communication, you close the server has not good? Or should be network problems, close no response caused by waiting for the client response?
  • Related