"can_read" really means "trying to read won't block", which means that end-of-file will cause can_read to keep returning "true" forever. That might be your problem.
You need to detect end-of-file and then (probably) close the socket and stop asking if you can read from it.
- tye
In reply to Re^5: Problem with IO::Select (won't block)
by tye
in thread Problem with IO::Select
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |