Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Socket programming

by Illuminatus (Curate)
on Nov 12, 2008 at 16:11 UTC ( [id://723200]=note: print w/replies, xml ) Need Help??


in reply to Re: Socket programming
in thread Socket programming

If the connection is via a WAN or the Internet, then what you are describing can occur. Within a local network, it is much less likely. This is a TCP socket. When either side receives a FIN, the result in the application is an EOF. When a process dies, in almost all instances, open sockets are closed by the OS, resulting in a FIN going to the remote side. On a LAN, the receipt of this is almost certain. On a WAN, intervening equipment/hops can cause packet or session loss.

Replies are listed 'Best First'.
Re^3: Socket programming
by SuicideJunkie (Vicar) on Nov 12, 2008 at 18:10 UTC
    Indeed it is a rare occurrence, but in a single-threaded server, one eternal wait event is all that is required to take the system down.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://723200]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-03-29 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found