![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re: IO::Socket questionby Abigail-II (Bishop) |
on Feb 11, 2004 at 22:20 UTC ( #328403=note: print w/replies, xml ) | Need Help?? |
Ah, the joys of socket programming. You've caused a deadlock
situation. The <sock> makes that your program
is waiting for input (it's going to suck up all the input
until eof, which in this case means, the socket closing).
But the other end is also waiting for input, and it's not
going to talk until it sees something. Your program is only
going to finish if the other ends break the deadlock because
some timer goes off.
Abigail
In Section
Seekers of Perl Wisdom
|
|