From owner-freebsd-net Sat Feb 5 6:46:50 2000 Delivered-To: freebsd-net@freebsd.org Received: from awfulhak.org (dynamic-22.max4-du-ws.dialnetwork.pavilion.co.uk [212.74.9.150]) by builder.freebsd.org (Postfix) with ESMTP id C2179439C for ; Sat, 5 Feb 2000 06:46:45 -0800 (PST) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by awfulhak.org (8.9.3/8.9.3) with ESMTP id OAA04471; Sat, 5 Feb 2000 14:47:08 GMT (envelope-from brian@lan.awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost.lan.Awfulhak.org [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id OAA35690; Sat, 5 Feb 2000 14:47:07 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200002051447.OAA35690@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Gene Kan Cc: Brian Somers , freebsd-net@FreeBSD.ORG, brian@hak.lan.Awfulhak.org Subject: Re: Non-blocking sockets and network outages In-Reply-To: Message from Gene Kan of "Fri, 04 Feb 2000 21:08:12 PST." <20000205050812.24060.qmail@scam.xcf.berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 05 Feb 2000 14:47:07 +0000 From: Brian Somers Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > Keepalives are by default very infrequent: > > > > This means that the first keepalive won't be sent for 2 hours, at > > which point up to 8 will be sent with 75 seconds in between each. If > > there are no responses after that, the connection is dropped. > > Thanks so much! Problem solved. > > [straight6:~]sysctl -a | grep keep > net.inet.ip.keepfaith: 0 > net.inet.tcp.keepidle: 75000 > net.inet.tcp.keepintvl: 1000 > net.inet.tcp.keepinit: 75000 > > Aggressive, but who puts up with lagged net, anyway? :) (Is there any > way to set these intervals per-socket with setsockopt?) I don't believe so - a bit of a shame really. I think this sort of thing should be available rather than having to implement at the application level :-( > Gene > -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message