Return to BSD News archive
Xref: sserve comp.unix.programmer:15363 comp.unix.bsd:13507 Path: sserve!newshost.anu.edu.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!gatech!concert!decwrl!vixie!vixie From: vixie@vix.com (Paul A Vixie) Newsgroups: comp.unix.programmer,comp.unix.bsd Subject: Re: Detecting dead client in BSD socket Date: 4 Mar 94 00:07:17 Organization: Vixie Enterprises Lines: 8 Message-ID: <VIXIE.94Mar4000717@office.home.vix.com> References: <1994Mar3.154852.24090@il.us.swissbank.com> NNTP-Posting-Host: office.home.vix.com In-reply-to: leed@il.us.swissbank.com's message of Thu, 3 Mar 1994 15:48:52 GMT to get your kernel to find out whether the connection is alive when idle: { int on = 1; setsockopt(s, IPPROTO_TCP, SO_KEEPALIVE, &on, sizeof(int)); } -- Paul Vixie Redwood City, CA Also: <comp-sources-unix@uunet.uu.net>, <vixie@bsdi.com>, decwrl!vixie!paul <ftpmail-admin@pa.dec.com>, <vixie@sony.com>, <paul@vix.com> <{bind-workers,objectivism}-request@vix.com>