🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #23129

Re: Newsreaders hang getting headers

#23129
From: Forrest J. Cavalier III
Date: Mon, 10 Nov 1997 00:00
36 lines
1985 bytes
In article <647c22$qna$1@ostrich.cybercomm.net>, leighk@ostrich.cybercomm.net 
wrote...
>
>Forrest J. Cavalier III <mibsoft@epix.net> wrote:
[snip]
>>     nnrpd starts up, and then tries to get the name of the peer, to
>>         decide whether access is permitted according to nnrp.access.
>>         [It is at this point the cant getpeername error is triggered.]
>
>Would nnrpd be doing the name lookup if I have NNRP_GETHOSTBYADDR defined as
>DONT in config.data? If it still does _something_, would it help to have named
>running on the news server and running with a cache of our hostnames? Or am
>I totally going in the wrong direction here?


A bit of confusion, due to the "convention of confusion" of
IP "address" and "host name" in the socket documentation.  I should
have been more careful.  I was speaking loosely of something that
is actually a two step process:

See the code in nnrpd/nnrpd.c StartConnection()
   The getpeername() call actually gets the IP address.  The socket
   needs to be connected, or an ENOTCONN error is returned and
   the message is logged.

   The NNRP_GETHOSTBYADDR setting controls code which takes the second
   step of converting the IP address to a hostname.  

So to answer your question directly, the getpeername() call
happens regardless of the NNRP_GETHOSTBYADDR setting.  

Forrest


Technical Details
Message-ID: <647p49$2lh$1@news1.epix.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.mbox.zip!not-for-mail
References: <646al5$mbs$1@ostrich.cybercomm.net> <6471tn$llj$1@news1.epix.net> <647c22$qna$1@ostrich.cybercomm.net>

Show Full Headers
Complete Article Headers
Message-ID: <647p49$2lh$1@news1.epix.net>
Subject: Re: Newsreaders hang getting headers
Date: Mon, 10 Nov 1997 00:00:00 +0000
From: mibsoft@epix.net (Forrest J. Cavalier III)
References: <646al5$mbs$1@ostrich.cybercomm.net> <6471tn$llj$1@news1.epix.net> <647c22$qna$1@ostrich.cybercomm.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.mbox.zip!not-for-mail
X-Deja-AN: 289031259
Organization: Mib Software
Newsgroups: news.software.nntp