🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #55792

Re: Forecasting the posting's size

#55792
From: Jeffrey M. Vinocur
Date: Sun, 30 Dec 2001 10:04
43 lines
2395 bytes
In article <a0mi6f$qqr$1@mail.cn99.com>, Joshua <JoshuaIIII@hotmail.com> wrote:
>After the Server receiving POST command from the client,does he have any way
>to forecast the size of the article that the client will post?

No


>Usually,the server will dynamically requires memory for caching and
>processing the receiving posting.I can't find the grounds for the server to
>determine how much memory he has to apply for that?

As you say, dynamically.  If you find you need more, realloc() or
equivalent.


>Yes,most server has his own upper limit of posting. But at extreme
>situation,a client can posting a very,very large article(containing
>attachment). The server has to receive the whole posting until get the
>ending sign string(CRLF.CRLF) before he get a chance to respond the client a
>piece of message such as "441 Error.Guy,too big article!".

True.


>Of course,he can
>directly closes the conversation as soon as the upper limit reaches, but as
>if that he never get the chance to tell the client what's wrong with him. 

Other than wasting bandwidth and a small amount of processing
time, it's not such a big deal to trash the data as it comes in
(if that's what you decide to do) and reply when it's done.


>Any idea about this? Thanks for any advice.

INN just takes the article as it comes and allocates however much
memory it needs.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID: <a0mor0$901$2@marduk.litech.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.litech.org!not-for-mail
References: <a0mi6f$qqr$1@mail.cn99.com>

Show Full Headers
Complete Article Headers
Message-ID: <a0mor0$901$2@marduk.litech.org>
Subject: Re: Forecasting the posting's size
Date: Sun, 30 Dec 2001 10:04:16 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <a0mi6f$qqr$1@mail.cn99.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.litech.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Lithium Technologies
Lines: 42
Sender: jeff@litech.org
NNTP-Posting-Host: marduk.litech.org
X-Trace: marduk.litech.org 1009706656 9217 128.84.154.54 (30 Dec 2001 10:04:16 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Sun, 30 Dec 2001 10:04:16 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)