Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^5: Problem with IO::Select (won't block)

by tye (Sage)
on Mar 01, 2007 at 01:26 UTC ( #602634=note: print w/replies, xml ) Need Help??


in reply to Re^4: Problem with IO::Select
in thread Problem with IO::Select

"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        

  • Comment on Re^5: Problem with IO::Select (won't block)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://602634]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2019-07-23 04:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (24 votes). Check out past polls.

    Notices?