Article View: news.software.nntp
Article #82726Re: innfeed and initial-reconnect-time
From: Julien ÉLIE
Date: Mon, 01 Feb 2010 19:01
Date: Mon, 01 Feb 2010 19:01
50 lines
2974 bytes
2974 bytes
Hi Michael,
> According the manual pages initial-reconnect-time should be doubled
> after every failed connect until max-reconnect-time is reached.
It depends on what is called a "failed connect" :)
> In connection.c (2.5.1) I do find:
> ,----
> | /* bump the sleep timer amount each time to wait longer and longer.
> | * Gets reset in resetConnection() */
> | cxn->sleepTimeout *= 2 ;
> | if (cxn->sleepTimeout > max_reconnect_period)
> | cxn->sleepTimeout = max_reconnect_period ;
> `----
I see that comment for the prepareReopenCbk() function:
/*
* Set up the callback used when the Connection is sleeping (i.e. will try
* to reopen the connection).
*/
So it is when the connection is sleeping because of an unknown answer.
Here, I believe something like IHAVE has been sent and the server
receives 502.
(The error for a 502 banner is different.)
It is not an expected response code, so innfeed waits for more data.
cxnSleepOrDie() is called and then prepareReopenCbk().
It is not a "failed connect" because the server had accepted the
connection and answered... A failed connect is when the peer
does not answer at all (no banner).
To be more explicit, the sleepTimeout is reset here in getModeResponse()
when innfeed sends MODE STREAM:
/* sleepTimeout get changed at each failed attempt, so reset. */
cxn->sleepTimeout = init_reconnect_period ;
--
Julien ÉLIE
« -- Nous parlerons quand l'interprète dormira.
[Bong !]
-- Il dort. On peut parler. » (Astérix)
Technical Details
Message-ID:
<hk78dp$9m9$1@news.trigofacile.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.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-151-1-9-10.w83-114.abo.wanadoo.fr!not-for-mailReferences:
<hk75k6$uq9$1@de-l.enfer-du-nord.net>Show Full Headers
Complete Article Headers
Message-ID: <hk78dp$9m9$1@news.trigofacile.com> Subject: Re: innfeed and initial-reconnect-time Date: Mon, 1 Feb 2010 20:01:16 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <hk75k6$uq9$1@de-l.enfer-du-nord.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.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-151-1-9-10.w83-114.abo.wanadoo.fr!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 50 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 8bit Injection-Date: Mon, 1 Feb 2010 19:01:13 +0000 (UTC) Injection-Info: news.trigofacile.com; posting-host="aaubervilliers-151-1-9-10.w83-114.abo.wanadoo.fr:83.114.8.10"; logging-data="9929"; mail-complaints-to="abuse@trigofacile.com" In-Reply-To: <hk75k6$uq9$1@de-l.enfer-du-nord.net> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6002.18005 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18005