Hi, im writing a multi-threaded server and im having some problems with the server going to sleep.

After a long period of no activity (we are talking 24hrs +) the server establishes an incoming connection, but does not reply to any data.

The listener part of the server is running in its own thread, and from what I can try and guess the thread seams to “go to sleep”, leaving the socket open, but unable to handle data.

Do threads have a set “life span” if they are idle? – Or, an “auto timeout”?