in reply to Setting SO_LINGER on Windows

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.

- caedes

Replies are listed 'Best First'.
Re^2: Setting SO_LINGER on Windows
by renodino (Curate) on Nov 06, 2005 at 05:20 UTC
    I think it should be noted that "sleep" only functions on integer time increments...

    Unless you use Time::HiRes...

    Perhaps I need to rephrase my original question:

    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..