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

Re: Re: $Socket->connected Not Returning False?

by BronzeWing (Monk)
on Oct 21, 2003 at 17:55 UTC ( [id://301012]=note: print w/replies, xml ) Need Help??


in reply to Re: $Socket->connected Not Returning False?
in thread $Socket->connected Not Returning False?

Thank you! I've added a case to my original code that watches for !defined($read) and $! != EAGAIN(), and closes the socket locally, allowing $Socket->connected to return false. It works perfectly now.

-BronzeWing


You are in a maze of twisty little knowledge base documents, all alike.
It is dark. You are likely to be eaten by a lawyer.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-25 17:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found