Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: IO::Socket hanging during requests

by sch (Pilgrim)
on Oct 20, 2002 at 05:26 UTC ( [id://206623]=note: print w/replies, xml ) Need Help??


in reply to IO::Socket hanging during requests

After playing around some, I think I found out what's going on - the pauses are where there's no server at the other end, so I guess one of three things was happening:

  1. We get a connection so we don't get a hang
  2. The connection is refused, again we don't get a hang
  3. There's no server at the requested address, so it sits waiting for a response, doesn't get one and eventually times out

But today you took me walking, Through a land that we have lost,
While our children sit at websites, With no access to the cost

Replies are listed 'Best First'.
Re: Re: IO::Socket hanging during requests
by Ryszard (Priest) on Oct 20, 2002 at 10:09 UTC
    If there is no server at the other end, wont you get a connection refused message?

    In my client socket code, I always eval the calls to the socket so I can timeout if there is any problems..

      I'm not a 100% certain here, but I thought you only got a connection refused if there was a server at the other end to refuse it.

      But today you took me walking, Through a land that we have lost,
      While our children sit at websites, With no access to the cost

Log In?
Username:
Password:

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

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

    No recent polls found