Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

(tye2)Re: Timeout problem using IO::Socket

by tye (Sage)
on Sep 27, 2000 at 19:46 UTC ( [id://34221]=note: print w/replies, xml ) Need Help??


in reply to Re: Timeout problem using IO::Socket
in thread Timeout problem using IO::Socket

$SIG{ALRM}=\&AlarmHandler;

Well, that looks right as far as it goes. But if your program is printing "Alarm Clock" and then dieing, then you almost certainly are not setting up your alarm handler properly. Perhaps you are doing this too late, undoing it too early, have it in some conditional that you think is being run but isn't, etc. Perhaps some other code is setting up its own alarm handler and overwriting yours. You might want to step through this with the Perl debugger.

        - tye (but my friends call me "Tye")
  • Comment on (tye2)Re: Timeout problem using IO::Socket

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-23 22:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found