Article View: news.software.nntp
Article #79034Re: Another bug
From: Julien ÉLIE
Date: Wed, 14 May 2008 18:05
Date: Wed, 14 May 2008 18:05
62 lines
3357 bytes
3357 bytes
Hi D. Stussy,
>> I forward the bug to inn-workers.
>
> Thank you for confirming that it wasn't me. I also note that it won't
> hamper overall operation - just waste some resources (memory, bandwidth,
> etc).
Miquel van Smoorenburg found the problem:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
It's standard getaddrinfo() behaviour. It returns the same address
three times .. a small test program that prints the return
values of getaddrinfo shows:
$ ./getaddrinfo feeder.erje.net
family: 2, socktype: 1, protocol: 6
family: 2, socktype: 2, protocol: 17
family: 2, socktype: 3, protocol: 0
(that's protocol TCP, UDP, and IP)
If we add
hints.ai_socktype = SOCK_STREAM;
to the code where the hints struct is filled, then the result is:
$ ./getaddrinfo feeder.erje.net
family: 2, socktype: 1, protocol: 6
This isn't really a big problem, things won't break. It just means
that rotating the peer IP addressses is a bit slower than it could be.
For 2.4.4 this should fix it I think:
#---------------- innfeed-host-thrice-fix.diff ---------------
diff -ruN inn-2.4.4.orig/innfeed/host.c inn-2.4.4/innfeed/host.c
--- inn-2.4.4.orig/innfeed/host.c 2008-05-05 12:18:36.000000000 +0200
+++ inn-2.4.4/innfeed/host.c 2008-05-14 14:06:18.000000000 +0200
@@ -1158,6 +1158,7 @@
memset(&hints, 0, sizeof(hints));
hints.ai_family = family ? family : AF_UNSPEC;
+ hints.ai_socktype = SOCK_STREAM;
#ifdef AI_ADDRCONFIG
hints.ai_flags = AI_ADDRCONFIG;
#endif
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
I will commit it as soon as possible. Therefore, the problem will not
be happening again in STABLE snapshots.
Thanks for having seen it.
--
Julien ÉLIE
« -- Il est temps d'aller déguster une bonne cervoise de derrière les fagots !
-- Accompagnées de sangliers dodus rôtis sur ces mêmes fagots, bien sûr ! » (Astérix)
Technical Details
Message-ID:
<g0f9m2$6oj$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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news.trigofacile.com!not-for-mailReferences:
<fvt1bf$qug$1@snarked.org> <g0aoo6$op9$1@snarked.org> <g0cqcn$kt6$1@news.trigofacile.com> <g0dbe2$f87$1@snarked.org>Show Full Headers
Complete Article Headers
Message-ID: <g0f9m2$6oj$1@news.trigofacile.com> Subject: Re: Another bug Date: Wed, 14 May 2008 20:05:40 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <fvt1bf$qug$1@snarked.org> <g0aoo6$op9$1@snarked.org> <g0cqcn$kt6$1@news.trigofacile.com> <g0dbe2$f87$1@snarked.org> 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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news.trigofacile.com!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 62 NNTP-Posting-Host: aaubervilliers-151-1-87-210.w83-199.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: news.trigofacile.com 1210788354 6931 83.199.150.210 (14 May 2008 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Wed, 14 May 2008 18:05:54 +0000 (UTC) In-Reply-To: <g0dbe2$f87$1@snarked.org> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18000