Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by tye (Sage)
on Mar 01, 2007 at 01:26 UTC ( [id://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        

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-03-29 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found