Date: Sat, 05 Feb 2000 14:47:07 +0000 From: Brian Somers <brian@Awfulhak.org> To: Gene Kan <genehkan@scam.xcf.berkeley.edu> Cc: Brian Somers <brian@Awfulhak.org>, freebsd-net@FreeBSD.ORG, brian@hak.lan.Awfulhak.org Subject: Re: Non-blocking sockets and network outages Message-ID: <200002051447.OAA35690@hak.lan.Awfulhak.org> In-Reply-To: Message from Gene Kan <genehkan@scam.xcf.berkeley.edu> of "Fri, 04 Feb 2000 21:08:12 PST." <20000205050812.24060.qmail@scam.xcf.berkeley.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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 <brian@Awfulhak.org> <brian@FreeBSD.org> <http://www.Awfulhak.org> <brian@OpenBSD.org> Don't _EVER_ lose your sense of humour ! <brian@FreeBSD.org.uk> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002051447.OAA35690>