Try the unbuffered read() function instead of sysread()
You've got it the wrong way round. Perl's read function is buffered, while sysread is unbuffered. sysread is implemented via tha low-level system (OS) call read(2) (man 2 read), which is why it's called sysread. It's this read(2) that the documentation of sysread is talking about.
That said, flushing the socket after the print is certainly a good idea, though.
In reply to Re^10: IO::Socket Listen
by Eliya
in thread IO::Socket Listen
by Secalles
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |