in reply to Re: IO::Socket does not send FIN ack?
in thread IO::Socket does not send FIN ack?

Thanks for the posts above. So if I change the second listen to accept, that should do work?
If the accept works well, do I still need to explictly close the socket, or the socket will be closed automatically?
How do I see monitor the sockets opened? I was using netstat -na |grep port#, but feel it is not very effective.
  • Comment on Re^2: IO::Socket does not send FIN ack?

Replies are listed 'Best First'.
Re^3: IO::Socket does not send FIN ack?
by ikegami (Patriarch) on Jul 30, 2010 at 02:11 UTC
    The socket will be closed automatically when the all copies of it go out of scope or get overwritten.