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