🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #51145

Re: Earthquake - new version

#51145
From: Steve Walker
Date: Tue, 13 Mar 2001 04:08
47 lines
2328 bytes
In article <4rwyz5zw@opaopa.org>, "Kenichi Okada" <okada@opaopa.org>
wrote:


> Hi,
> In the message <20010312.160721.1967681095.16798@dragon.nibble.net>
> "Steve Walker" <mouse@nibble.net> wrote:
>> It's been a while since I had the chance to work on Earthquake, but I
>> would like to announce that there is a new version available.  I am
>> also releaseing the complete source code.  I'm interrested in getting
>> some feedback and help in porting it to other OSs.
> 
>> For those people who don't know, Earthquake is a free nntp router
>> package.  It's fast, easy to configure, and the current version seems
>> stable.
> Why does earthquake send `239' and msgid on separated packets? It will
> waste network band width.
> % ngrep -d lo port 119
> T 130.54.30.185:119 -> 130.54.30.185:3190 [AP]
>   239
> ##
> T 130.54.30.185:119 -> 130.54.30.185:3190 [AP]
>   <nntpbench.984454970.542624@inari.kuee.kyoto-u.ac.jp>..

Thanks for pointing this out.  My guess is the following feedin.c code is
the reason:

if(reject == 0)
{               
	/* send okey */
	NetWriteStr(net,"239 ");
} else {
	/* send rejected msg */
	NetWriteStr(net,"439 ");          
}
	                
/* send the msgid number */  
NetWriteStr(net,article->msgid);
NetWriteStr(net,"\r\n");           

I just change the code to put the whole line in a buffer and do a single
write.  That should fix it. 

Thanks again,
Steve Walker
http://nntprouter.nibble.net
Technical Details
Message-ID: <20010312.230824.382697713.16798@dragon.nibble.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!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!feed2.onemain.com!feed1.onemain.com!news-out.nibble.net!news-in.nibble.net!news.nntpserver.com!news.nntpserver.com
References: <20010312.160721.1967681095.16798@dragon.nibble.net> <4rwyz5zw@opaopa.org>

Show Full Headers
Complete Article Headers
Message-ID: <20010312.230824.382697713.16798@dragon.nibble.net>
Subject: Re: Earthquake - new version
Date: Mon, 12 Mar 2001 23:08:30 -0500
From: "Steve Walker" <mouse@nibble.net>
References: <20010312.160721.1967681095.16798@dragon.nibble.net> <4rwyz5zw@opaopa.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.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!feed2.onemain.com!feed1.onemain.com!news-out.nibble.net!news-in.nibble.net!news.nntpserver.com!news.nntpserver.com
Newsgroups: news.software.nntp
User-Agent: Pan/0.9.5 (Unix)
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Lines: 46