Article View: news.software.nntp
Article #63613Re: Simple NNTP question on connect/disconnect
From: Dufus Systems
Date: Fri, 24 Jan 2003 20:12
Date: Fri, 24 Jan 2003 20:12
21 lines
1957 bytes
1957 bytes
webview@hotmail.com (Tim Mavers) wrote in <5bea1a50.0301240921.50017c6f@posting.google.com>: My own experience is that while some news servers are very good about tracking client disconnects, others miss it and won't free up the connections until some timeout period elapses. The symptoms of this is you might have no connections to the server, try to connect and get an excessive connection error even though you disconnected minutes before. In my case, I cache the connections, watch the state of the connection and let several threads work with it. So, I might download an article, then release the connection to a general pool. When a thread needs the connection, it acquires it from the pool, makes use of it and returns it to the pool. There is an age factor built in too. If the connection gets too old without being used, it's closed. > >That said, is it acceptable to connect/disconnect when communicating >with the nntp server? >
Technical Details
Message-ID:
<Xns930D9BE5D281Bpeonsomecompanycomin@127.0.0.1>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!archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!newsfeed1.easynews.com!easynews.com!easynews!easynews-local!news.easynews.com.POSTED!not-for-mailReferences:
<5bea1a50.0301240921.50017c6f@posting.google.com>Show Full Headers
Complete Article Headers
Message-ID: <Xns930D9BE5D281Bpeonsomecompanycomin@127.0.0.1> Subject: Re: Simple NNTP question on connect/disconnect Date: Fri, 24 Jan 2003 20:12:43 GMT From: peon@somecompany.com.invalid (Dufus Systems) References: <5bea1a50.0301240921.50017c6f@posting.google.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!archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!newsfeed1.easynews.com!easynews.com!easynews!easynews-local!news.easynews.com.POSTED!not-for-mail Newsgroups: news.software.nntp Organization: Ranma Fan User-Agent: Xnews/M3 Lines: 20 X-Complaints-To: abuse@easynews.com X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.