12-07-2006 04:18 PM
12-08-2006 01:57 AM
I can't say I've heard of this, but it would probably be part of the OS, since that's responsible for handling the TCP communication. In Windows, you might have a registry setting for this.
I prefer writing a sort of automatic "ping" into my code (where applicable) so that if nothing was done for N seconds, a message is sent just to make sure that the connection is still there. Then, I have a running counter for timeout errors which is reset whenever any message is received. If the counter reaches a certain limit, it means that no message was received for X time and we would want to do something about it. The main reason is that any number of things can cause the connection to break (like someone accidentally pulling out a cable) and you would like to know about as soon as possible.
12-08-2006 05:45 PM