Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Getting stuck reading from a socket

by jethro (Monsignor)
on Jul 11, 2012 at 13:25 UTC ( #981115=note: print w/replies, xml ) Need Help??


in reply to Getting stuck reading from a socket

Where is the code where you check for success of your calls? Does the new succeed? Does send succeed?

Did you check whether the PeerAddr and PeerPort parameters to new are what you want?

PS: I might be misinterpreting your question. Do you ask because your script always blocks on reading or because it normally works but you want to avoid blocking in case the hardware doesn't answer?

  • Comment on Re: Getting stuck reading from a socket

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://981115]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2016-12-04 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (62 votes). Check out past polls.