Article View: news.software.nntp
Article #79705Re: A pair of small patches I'd like to see in the mainstream.
From: Julien ÉLIE
Date: Thu, 20 Nov 2008 15:23
Date: Thu, 20 Nov 2008 15:23
76 lines
4048 bytes
4048 bytes
Hi D. Stussy,
>> > " Addr %-2u"
>>
>> Adopted.
>
> Actually, you shouldn't have made this change. As I said, it was
> in the ORIGINAL alpha-test version. (Innfeed)
In fact, I prefer the indentation. That's why I changed that.
news.cyber-rezo.net
Addr 1 : IPv6 2001:41d0:1:7ae4::1
Addr 2 : IPv4 91.121.71.228
seconds: 90 art. timeout: 600 ip name: news.cyber-rezo.net
offered: 1 resp. timeout: 300 port: 119
instead of:
news.cyber-rezo.net
Address 1 : IPv6 2001:41d0:1:7ae4::1
Address 2 : IPv4 91.121.71.228
seconds: 90 art. timeout: 600 ip name: news.cyber-rezo.net
offered: 1 resp. timeout: 300 port: 119
> In the empty space created in column 3, maybe should have "max allowed cxns: #"
> (per peer). That statistic is one that is missing from the report.
Thanks for the suggestion. Just done:
feeds.lacave.net
ip address: 217.112.180.250
seconds: 122 duplicates: 0 max allowed cxns: 8
offered: 7 uw newsgroups: 0 active cxns: 1
accepted: 0 uw distributions: 0 sleeping cxns: 0
===================================================================
--- status.c (révision 8177)
+++ status.c (copie de travail)
@@ -27,6 +27,7 @@
char ip_addr[SMBUF];
bool can_stream;
unsigned short activeCxn;
+ unsigned short maxCxn;
unsigned short sleepingCxns;
time_t seconds;
unsigned long accepted;
@@ -169,6 +170,7 @@
(struct sockaddr *) &cp->Address);
}
status->can_stream = cp->Streaming;
+ status->maxCxn = cp->MaxCnx;
status->seconds = status->Size = status->DuplicateSize = 0;
status->RejectSize = 0;
status->Ihave = status->Ihave_Duplicate =
@@ -329,7 +331,8 @@
fprintf (F, "%s\n", status->name);
fprintf (F, " ip address: %s\n", status->ip_addr);
fprintf (F, " seconds: %-7ld ", (long) status->seconds);
- fprintf (F, " duplicates: %-7ld\n", status->Duplicate);
+ fprintf (F, " duplicates: %-5ld ", status->Duplicate);
+ fprintf (F, "max allowed cxns: %d\n", status->maxCxn);
fprintf (F, " offered: %-7ld ",
status->accepted + status->refused + status->rejected);
fprintf (F, " uw newsgroups: %-7ld ", status->Unwanted_g);
--
Julien ÉLIE
« César, c'est un Jules tout de même ! » (Astérix)
Technical Details
Message-ID:
<gg3vea$e8q$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!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:
<gdb2rs$7av$1@snarked.org> <gfuain$ee9$1@news.trigofacile.com> <gfvo60$8sp$1@snarked.org> <gg0uh3$mgd$1@news.trigofacile.com> <gg28lk$is5$1@snarked.org>Show Full Headers
Complete Article Headers
Message-ID: <gg3vea$e8q$1@news.trigofacile.com> Subject: Re: A pair of small patches I'd like to see in the mainstream. Date: Thu, 20 Nov 2008 16:23:38 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <gdb2rs$7av$1@snarked.org> <gfuain$ee9$1@news.trigofacile.com> <gfvo60$8sp$1@snarked.org> <gg0uh3$mgd$1@news.trigofacile.com> <gg28lk$is5$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!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: 76 NNTP-Posting-Host: amontpellier-152-1-52-250.w83-197.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 1227194634 14618 83.197.145.250 (20 Nov 2008 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Thu, 20 Nov 2008 15:23:54 +0000 (UTC) In-Reply-To: <gg28lk$is5$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.18049