🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #2716

Re: Linux, nntpd & Trumpet News (long)

#2716
From: Per Hedeland
Date: Tue, 12 Jul 1994 16:44
35 lines
2363 bytes
In article <CsJp5x.KJu@infodrom.north.de>, joey@infodrom.north.de (Martin Schulze) writes:
|> If I then select another newsgroup within Trumpet it shows some
|> content of former answers in his status line, but doesn't try to read
|> them. Perhaps his buffer's change?
|> 
|> Could the reason for this rely somewhere in the art of connecting the
|> tcp/ip socket to stdio?

I think that's a pretty good summary... As I recall, the reference NNTP
implementation (i.e. nntpd) used to have problems with GNUS, which
"streams" requests just as Trumpet apparently does - due to trying to
use stdio buffering in conjunction with select(). The final "solution"
used (from server/timer.c):

/* non-portable */
#define BUFFERED_DATA(f) ((f)->_cnt > 0)

I believe you'll (at least) have to figure out what the version of the
above #define should be for Linux; perhaps it would be simpler to tell
Trumpet to not do streaming, if possible.

|> When I turn Trumpet debugging on I see that it doesn't receive the
|> data. 

I think you misinterpret your output slightly - it seems that Trumpet
*retries* the XHDR commands after the timeout (a pretty stupid thing to
do, IMHO). The first set of commands isn't lost, but waiting in nntpd's
stdin buffer, and discovered when the second set is received - which is
also when your nntpd log shows the replies. Or something like that...

--Per Hedeland
per@erix.ericsson.se  or
per%erix.ericsson.se@sunic.sunet.se  or
...uunet!erix.ericsson.se!per
Technical Details
Message-ID: <2vuh94$t01@euas20.eua.ericsson.se>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!bga.com!news.sprintlink.net!hookup!swrinde!howland.reston.ans.net!EU.net!sunic!erinews.ericsson.se!eua.ericsson.se!erix.ericsson.se!per
References: <CsJp5x.KJu@infodrom.north.de>

Show Full Headers
Complete Article Headers
Message-ID: <2vuh94$t01@euas20.eua.ericsson.se>
Subject: Re: Linux, nntpd & Trumpet News (long)
Date: Tue, 12 Jul 1994 16:44:20 +0000
From: per@erix.ericsson.se (Per Hedeland)
References: <CsJp5x.KJu@infodrom.north.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!bga.com!news.sprintlink.net!hookup!swrinde!howland.reston.ans.net!EU.net!sunic!erinews.ericsson.se!eua.ericsson.se!erix.ericsson.se!per
Newsgroups: comp.os.linux.misc,news.software.nntp,news.admin.misc
Organization: Ellemtel Telecom Systems Labs, Stockholm, Sweden
Lines: 34
Distribution: inet
NNTP-Posting-Host: aalborg.eua.ericsson.se
NNTP-Posting-User: per