I think it should be noted that "sleep" only functions on integer time increments, so most likely it is not the time interval which causes the bug to go away. In order to further diagnose the issue a bit more of your code would be much appreciated.
What's the proper way to set SO_LINGER ? Ancient memories
of Unix and TLI lead me to believe I need 2 values:
a flag to enable, and another value to set the timeout.
Based on the perl examples I've surfaced thus far, approx.
50% are doing it the wrong way..