Article View: news.software.nntp
Article #18153Re: More stats for INN
From: Jeff Garzik
Date: Mon, 02 Jun 1997 00:00
Date: Mon, 02 Jun 1997 00:00
67 lines
2329 bytes
2329 bytes
This is a multi-part message in MIME format.
--------------6CDE131D5F8A8497CC18806
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
The attached patch prevents a buffer overflow in the previous patch, and
also adds reporting of the seconds each incoming cxn has been open.
--
Jeff Garzik
News Administrator, Spinne, Inc.
http://www.spinne.com/usenet/
--------------6CDE131D5F8A8497CC18806
Content-Type: text/plain; charset=us-ascii; name="cc.c.patch1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="cc.c.patch1"
*** ../inn-plain/innd/cc.c Tue Dec 17 09:40:40 1996
--- innd/cc.c Mon Jun 2 22:20:48 1997
***************
*** 876,881 ****
--- 884,890 ----
register char *p;
register int count;
int i;
+ char Gs1[128];
p = av[0];
if (*p != '\0') {
***************
*** 892,897 ****
--- 901,909 ----
BUFFappend(&CCreply, NL, 1);
p = CHANname(cp);
BUFFappend(&CCreply, p, strlen(p));
+ sprintf(Gs1, ":seconds %ld:accepted %ld:refused %ld:rejected %ld",
+ (long)Now.time - cp->Started, cp->Received, cp->Refused, cp->Rejected);
+ BUFFappend(&CCreply, Gs1, strlen(Gs1));
}
BUFFappend(&CCreply, NIL, 1);
return CCreply.Data;
***************
*** 1576,1583 ****
int written;
#endif /* defined(DO_HAVE_UNIX_DOMAIN) */
int i;
! char buff[BUFSIZ + 2];
! char copy[BUFSIZ + 2];
char *argv[SC_MAXFIELDS + 2];
int argc;
int len;
--- 1588,1595 ----
int written;
#endif /* defined(DO_HAVE_UNIX_DOMAIN) */
int i;
! char buff[BUFSIZ * 16];
! char copy[BUFSIZ * 16];
char *argv[SC_MAXFIELDS + 2];
int argc;
int len;
--------------6CDE131D5F8A8497CC18806--
Technical Details
Message-ID:
<33938C68.A48805@spinne.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!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <33938C68.A48805@spinne.com> Subject: Re: More stats for INN Date: Mon, 02 Jun 1997 00:00:00 +0000 From: Jeff Garzik <jeff.garzik@spinne.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!not-for-mail X-Deja-AN: 245731362 Organization: Spinne http://spinne.com Newsgroups: news.software.nntp