Article View: news.software.nntp
Article #36747Re: Submitting to Freenix
From: Greg Andrews
Date: Mon, 19 Apr 1999 00:00
Date: Mon, 19 Apr 1999 00:00
63 lines
3635 bytes
3635 bytes
Russ Allbery <rra@stanford.edu> writes: >Greg Andrews <gerg@shell1.ncal.verio.com> writes: >> Russ Allbery <rra@stanford.edu> writes: > >>> innfeed basically is really poorly tuned for speed by default. (It's >>> tuned to use the minimum number of connections, for one thing, and for >>> another it tends to set up and tear down connections depressingly >>> often. Maybe older news software really needed that, but these days >>> you want to open your connections up front and then just leave them up, >>> not keep constantly closing them and opening them again.) > >> I thought the underlying reason for closing and reopening the connection >> was to shed long TCP timeouts that had probably accumulated during the >> life of the connection. > >Now that's interesting... I don't think I know enough about the details of >TCP to understand the issue there. I haven't heard that before. Could >you (or someone else) elaborate a bit? > I don't remember the details, but the essence is that TCP has an adaptive algorithm for handling round-trip delays between point A and point B. The algorithm adjusts the timeout for receiving a packets from the other end. The idea is that TCP will automatically adjust itself to the normal delay conditions for the connection, and adjust the timeout upward when conditions get worse (e.g. a site's primary link goes down and traffic is routed through a secondary link). For well-connected sites, a common scenario would be a connection that sees low delays most of the time, but occaisionally has brief periods of high delays. In that case TCP would eventually adjust itself to the worst delay seen, and that adjustment only goes one way. TCP doesn't back itself down to short timeouts. So you can get into a situation where TCP will be willing to wait and wait and wait for an answer from the other machine, when you would rather it give up quickly so your program can log an error, quit, and try a new connection. The easiest way (the only way?) to reset the TCP timeout is to close the connection and start a fresh one. >> That doesn't justify closing/reopening connections every few minutes >> like innfeed used to do back in '96, though. (dunno if it's changed) I >> used to change the settings to go at least an hour or two between >> close/reopens. > >I think it defaults to an hour; I bumped it to ten hours and am >considering bumping it even higher. > I misspoke. I was thinking of nntplink, which closed/reopened the NNTP connection after a specified number of articles. The default was 200, which was only 2-3 minutes at 1996's normal transfer rates (2-3 articles per second)! -Greg -- ::::::::::::::::::: Greg Andrews gerg@netcom.com ::::::::::::::::::: Fortune Cookie: Radioactive cats have 18 half-lives. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Technical Details
Message-ID:
<gergFAG9DG.I3F@netcom.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<m3vhf1q7y5.fsf@sgifford.tir.com> <yl676su6gc.fsf@windlord.stanford.edu> <7ffhoc$c47$1@shell1.ncal.verio.com> <ylvhesr5og.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <gergFAG9DG.I3F@netcom.com> Subject: Re: Submitting to Freenix Date: Mon, 19 Apr 1999 00:00:00 +0000 From: gerg@netcom.com (Greg Andrews) References: <m3vhf1q7y5.fsf@sgifford.tir.com> <yl676su6gc.fsf@windlord.stanford.edu> <7ffhoc$c47$1@shell1.ncal.verio.com> <ylvhesr5og.fsf@windlord.stanford.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 468405547 Sender: gerg@netcom17.netcom.com Organization: WGASA.ORG: Long slow deep soft wet pings that last for three days Newsgroups: news.software.nntp