Welcome to the Monastery | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi :-) Dug's method will handle when the os notifies us when the tcp keepalive mechanism determines that the client is no longer there if the client doesn't close the tcp connection itself. elwarren's method will proactively perform a 'ping' to the client to determine if the client is no longer there. Which to use? Depends if you when you need to know when a client connection disappears. Do you really need to know if it disappears within 10 seconds? IMHO, a connectionless (udp based) would be preferrable. There is a simple example in the Perl Cookbook IIRC. Jason L. Froebe No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1 In reply to Re^2: socket lost by buffer overflow
by jfroebe
|
|