The only thing missing from the example in the documentation is reading if $nfound isn't zero.
Note that IO::Select is a thin layer around select that makes it easy to use.
When we use select to timeout a read operation it is completely stooped?
That makes no sense. "The select() system call examines the I/O descriptor sets whose addresses are passed in readfds, writefds, and exceptfds to see if some of their descriptors are ready for reading, are ready for writing, or have an exceptional condition pending, respectively." It blocks until it finds a descriptor that's ready or until time runs out. select does not cause other operations to timeout.
In reply to Re: Example of Socket + Read with Select as timeout?
by ikegami
in thread Example of Socket + Read with Select as timeout?
by perlmonks12
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |