🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #69136

Re: ctlinnd: cannot send "name" command (short read failure)

#69136
From: Russ Allbery
Date: Mon, 17 May 2004 08:06
25 lines
2719 bytes
Tuc <google@ttsg.com> writes:
> Russ Allbery <rra@stanford.edu> wrote:

>> The ctlinnd protocol uses UDP datagrams to communicate with innd, and
>> UDP datagrams are, I think, limited to 64KB (although I'm not sure).
>> Plus, the protocol itself uses a short to store the length, which
>> further limits it to 32KB.  I should change that to an unsigned short,
>> to start with, but it's something of a protocol flaw.  Not sure the
>> best way to address it.

>       Ok, well, please let me know. I really miss this part of the report.

I looked at this some more and this code was just broken.  The buffer used
to receive the reply from the server is either as large as is required to
send the command or 4KB, whichever is larger.  This is ridiculous.

I'm working on redoing the algorithm to receive up to a 64KB datagram.
That should be more than enough buffer to store any list of sites or
names.  This fix will be in the next release.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87k6zbjx42.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!newsfeed.news2me.com!canoe.uoregon.edu!hammer.uoregon.edu!logbridge.uoregon.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
References: <b0a6af8e.0402100052.4c34e14f@posting.google.com> <b0a6af8e.0403100629.304eb2eb@posting.google.com> <874qswef1r.fsf@windlord.stanford.edu> <b0a6af8e.0403101605.41375a5d@posting.google.com> <c2oadr$3cl$1@ratbert.glorb.com> <87ptbk9qxa.fsf@windlord.stanford.edu> <c2ob1m$3jd$1@ratbert.glorb.com> <87hdww9pwe.fsf@windlord.stanford.edu> <b0a6af8e.0404050811.265186a1@posting.google.com>

Show Full Headers
Complete Article Headers
Message-ID: <87k6zbjx42.fsf@windlord.stanford.edu>
Subject: Re: ctlinnd: cannot send "name" command (short read failure)
Date: Mon, 17 May 2004 01:06:53 -0700
From: Russ Allbery <rra@stanford.edu>
References: <b0a6af8e.0402100052.4c34e14f@posting.google.com> <b0a6af8e.0403100629.304eb2eb@posting.google.com> <874qswef1r.fsf@windlord.stanford.edu> <b0a6af8e.0403101605.41375a5d@posting.google.com> <c2oadr$3cl$1@ratbert.glorb.com> <87ptbk9qxa.fsf@windlord.stanford.edu> <c2ob1m$3jd$1@ratbert.glorb.com> <87hdww9pwe.fsf@windlord.stanford.edu> <b0a6af8e.0404050811.265186a1@posting.google.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.20140818.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!newsfeed.news2me.com!canoe.uoregon.edu!hammer.uoregon.edu!logbridge.uoregon.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 25
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1084781213 9544 171.64.19.147 (17 May 2004 08:06:53
 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through
 Obscurity, linux)
Cancel-Lock: sha1:JMSJLwFRasz453Xy+vOGYf0EFMI=