Article View: news.software.nntp
Article #69232Re: nntp 503 server timeout
From: Russ Allbery
Date: Tue, 25 May 2004 23:03
Date: Tue, 25 May 2004 23:03
28 lines
2270 bytes
2270 bytes
Florian Zschocke <edv@zschocke-berlin.de> writes:
> I have programmed a BSD-like socket connection with a automatic
> repetition of the last command ( when the connection is timed out
> ).
Note that that's not sufficient in and of itself. You also have to
re-establish any connection state that you previously had (which means
reauthenticating if necessary and executing the appropriate GROUP
command).
> From my point it is totally useless to have a server which tells me that
> he don't want to tell anything more without being reconnected.
Right.
> On the other hand I could not find a direct method to check if the
> connection is still good.
Generally you try to write the command to the server and see if you get
back -1 with an EPIPE error (I always set the SIGPIPE handler to ignore
with network code).
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87zn7wp0sg.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.20140818.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!newsfeed.news2me.com!canoe.uoregon.edu!hammer.uoregon.edu!logbridge.uoregon.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mailReferences:
<c8tult$iqc$1@puck.litech.org> <40b3cc6d$0$26353$9b4e6d93@newsread4.arcor-online.net>Show Full Headers
Complete Article Headers
Message-ID: <87zn7wp0sg.fsf@windlord.stanford.edu> Subject: Re: nntp 503 server timeout Date: Tue, 25 May 2004 16:03:27 -0700 From: Russ Allbery <rra@stanford.edu> References: <c8tult$iqc$1@puck.litech.org> <40b3cc6d$0$26353$9b4e6d93@newsread4.arcor-online.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!newsfeed.news2me.com!canoe.uoregon.edu!hammer.uoregon.edu!logbridge.uoregon.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 28 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1085526207 6085 171.64.19.147 (25 May 2004 23:03:27 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux) Cancel-Lock: sha1:ApD0UnG0Ew7BjcnYOPKU56gdMUk=