renodino has asked for the wisdom of the Perl Monks concerning the following question:
the server hangs. Some google pages indicated Win32 needs shorts, not longs, so I've tried$fd->setsockopt(SOL_SOCKET, SO_LINGER, pack('l', 1));
No help. And I thought that LINGER required 2 args, so I've tried$fd->setsockopt(SOL_SOCKET, SO_LINGER, pack('S', 1));
and$fd->setsockopt(SOL_SOCKET, SO_LINGER, pack('ll', 1, 1));
...with no success. What am I doing wrong ???$fd->setsockopt(SOL_SOCKET, SO_LINGER, pack('ss', 1, 1));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Setting SO_LINGER on Windows
by BrowserUk (Patriarch) on Nov 06, 2005 at 05:15 UTC | |
|
Re: Setting SO_LINGER on Windows
by sgifford (Prior) on Nov 05, 2005 at 23:23 UTC | |
|
Re: Setting SO_LINGER on Windows
by caedes (Pilgrim) on Nov 06, 2005 at 04:22 UTC | |
by renodino (Curate) on Nov 06, 2005 at 05:20 UTC |