See: http://poe.perl.org/?POE_RFCs/Window..._compatibility
The problem is that non-blocking sockets don't work on NT. All sockets are forced to block and wait for a new-line or EOF. Using getc() and testing for some end marker is one way around it, but using sysread() works better. It reads as many chars as are in the buffer without blocking.
Ex.
$retries = 30;
$bytes_to_read = 1024;...
Leave a comment: