in reply to syswrite and closed sockets
When you say you shut down the server, do you mean the server processs or the whole computer? If you shut down the whole computer, the time-out can take a long time--the default on Linux is somewhere between 13 and 30 minutes! (And that's assuming the two processes are on different computers. If they're on the same computer, you'll wait even longer for a reply if you shut it off :-)
On the other hand, if you just shut down the process, you should get an error "immediately".
P.S. $socket->syswrite($string, length($string)) can be shortened to $socket->syswrite($string). I seem to vaguely recall that that may not always have been the case.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: syswrite and closed sockets
by InfiniteLoop (Hermit) on Aug 11, 2006 at 16:56 UTC | |
by tye (Sage) on Aug 11, 2006 at 17:48 UTC | |
by InfiniteLoop (Hermit) on Aug 11, 2006 at 18:35 UTC |