Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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        

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

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 chanting in the Monastery: (4)
As of 2024-06-13 15:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.