🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #82741

Re: NNRPD - connect message in syslog

#82741
From: Julien ÉLIE
Date: Wed, 03 Feb 2010 23:25
30 lines
2453 bytes
Hi D. Stussy,

> Hint:  It would be nice if the NNRPD connection message in the syslog
> indicated the server's port number (so one can tell if a peer executed
> "mode reader" on port 119, or if someone came in on port 563, etc.).  This
> is especially helpful when NNRPD is spawned as a child process of INN or
> inetd.

OK, will be in INN 2.5.2.
To differentiate different instances of nnrpd, you can also name the
program differently.  Debian for instance uses "nnrpd-ssl" and that's
what is mentioned in relevant news.notice lines.



> Also, at line 1034, should we "free(path);"?  I think we should keep the
> filename of our PID file around and unlink it as we exit - i.e. in
> ExitWithStats() starting at line 196.

path is a local variable in main().  It is destroyed after being used.
Why would you retain it longer than needed?

-- 
Julien ÉLIE

« The hardest thing is to go to sleep at night, when there are
  so many urgent things needing to be done.  A huge gap
  exists between what we know is possible with today's machines
  and what we have so far been able to finish. »  (Donald Knuth) 
Technical Details
Message-ID: <hkd0lo$opq$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.ams.giganews.com!nntp.giganews.com!weretis.net!feeder2.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-151-1-47-4.w83-114.abo.wanadoo.fr!not-for-mail
References: <hka2rk$3p4$1@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <hkd0lo$opq$1@news.trigofacile.com>
Subject: Re: NNRPD - connect message in syslog
Date: Thu, 4 Feb 2010 00:25:49 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <hka2rk$3p4$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.ams.giganews.com!nntp.giganews.com!weretis.net!feeder2.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-151-1-47-4.w83-114.abo.wanadoo.fr!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 30
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="Windows-1252";
 reply-type=original
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 3 Feb 2010 23:25:44 +0000 (UTC)
Injection-Info: news.trigofacile.com;
 posting-host="aaubervilliers-151-1-47-4.w83-114.abo.wanadoo.fr:83.114.133.4";
 logging-data="25402"; mail-complaints-to="abuse@trigofacile.com"
In-Reply-To: <hka2rk$3p4$1@snarked.org>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6002.18005
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18005