Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2018-06-19 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (111 votes). Check out past polls.

    Notices?