![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: syswrite and closed socketsby Thelonius (Priest) |
on Aug 11, 2006 at 16:26 UTC ( [id://566880]=note: print w/replies, xml ) | Need Help?? |
Did the syswrite return a true value or did you just not wait long enough for it to return at all?
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.
In Section
Seekers of Perl Wisdom
|
|