in reply to Closing Sockets with IO::Socket::INET

Lacking some snipped, I just guess.... After accepting a new connection, your program owns two sockets (and handles to those). One socket still listening for new connections and another one that represents the newly established connection (your telnet session). Maybe you just closed the listening socket instead of that of the new connection by confusing the handles?
  • Comment on Re: Closing Sockets with IO::Socket::INET

Replies are listed 'Best First'.
Re^2: Closing Sockets with IO::Socket::INET
by lackita (Sexton) on Aug 05, 2008 at 20:13 UTC
    That's a good call, the problem was I wasn't closing the filehandle created by accept. Thanks guys.