How to detect when the client closes the connection?
Imaginethefollowingscenario:Youarewritingaserverapplication.Clientssendtheirqueriestotheserver,foreverynewclientconnection,theserverstartsanewprocessthatisresponsibleforansweringallqueriesreceivedfrom