Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Waiting and waiting?

by dug (Chaplain)
on Mar 04, 2003 at 04:35 UTC ( [id://240243]=note: print w/replies, xml ) Need Help??


in reply to Waiting and waiting?

I assume that you left out the fact that you had the line use IO::Select in your code. Its documentation tells us:
       can_read ( "[ TIMEOUT ]" )
           Return an array of handles that are ready for reading. "TIMEOUT" is
           the maximum amount of time to wait before returning an empty list,
           in seconds, possibly fractional. If "TIMEOUT" is not given and any
           handles are registered then the call will block.

So, yes, it will block the way you call it. If you want it to not block, pass it a timeout. Just like the documentation says.

-- dug

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-26 07:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found