Why not read all available data at once?
$len = sysread($fh, $buf, $fh->pending(), length($buf));
In reply to Re: IO::Socket::SSL's select() ignores pending data
by rowdog
in thread IO::Socket::SSL's select() ignores pending data
by ska
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |