Gabor Szabo <ga...@szabgab.com> writes:

[...]
> It seems the server is launched but the client still cannot connect.
> Or something completely different :)
[...]

Hi Gabor,

some thoughts on this:

- If the server was shutdown without closing its socket, then the socket
  may be alive for some seconds, blocking the port for some time. At
  least I saw this behavior on *BSD systems.

- Maybe setting ReuseAddr and/or ReusePort can help here?

- Probably it's a good idea to not use a hardcoded port. Other
  daemons/servers could already use this port, or the tester may run the
  test suite for different perls in parallel. If IO::Socket::INET does
  not have LocalPort specified, then a random port which is still
  available is used.

Regards,
    Slaven

-- 
Slaven Rezic - slaven <at> rezic <dot> de

    Berlin Perl Mongers - http://berlin.pm.org

Reply via email to