I'm guessing it will wait until a newline character is sent, or the sending socket closes. Setting an alarm on it might be possible, or an IO::Select timeout. Using sysread is a workaround, but then you need to reassemble the lines at the receiving end.
See stackoverflow discussion of getline()
The method getline() and getlines() are in perldoc IO::Handle.
In reply to Re: IO::Socket::INET->getline() function
by zentara
I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
in thread IO::Socket::INET->getline() function
by akagrawal3
For:
Use:
& & < < > > [ [ ] ]