![]() |
|
P is for Practical | |
PerlMonks |
Re: Closing Sockets with IO::Socket::INETby pc88mxer (Vicar) |
on Aug 05, 2008 at 16:05 UTC ( #702402=note: print w/replies, xml ) | Need Help?? |
Are you forking to handle the connection? Is it possible that you have the socket opened twice (once in the parent and once in the child)? That would explain why closing the child socket doesn't close the connection.
For an example of how to write a forking TCP server, have a look at the documentation for Net::TCP::Server.
In Section
Seekers of Perl Wisdom
|
|