Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Closing Sockets with IO::Socket::INET

by pc88mxer (Vicar)
on Aug 05, 2008 at 16:05 UTC ( #702402=note: print w/replies, xml ) Need Help??


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

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.

  • Comment on Re: Closing Sockets with IO::Socket::INET

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://702402]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery:

Internal problem occurred in get_picked_nodes
Duplicate entry '3-68-6' for key 1

Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (383 votes). Check out past polls.