Set a read timeout on the server. If a client is shut down, the OS should still send the FIN packet to the server.
Bryan Duxbury wrote: > What language are you talking about? I don't believe that Java or Ruby's > servers have this weakness. > > -Bryan > > On Sun, Mar 7, 2010 at 2:29 AM, Kyku <[email protected]> wrote: > >> Hello, >> >> Is it possible to set a timeout for server that would close stale >> client connections? Normally if a client is shutdown or there's a >> communication failure the server's socket for the client will be never >> closed leading to loss of resources. >>
