🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #69667

Re: POST -> no response, but message is posted.

#69667
From: Florian Zschocke
Date: Sun, 08 Aug 2004 13:56
59 lines
3629 bytes
Andrew - Supernews <andrew+nonews@supernews.com> wrote:
>
>
On 2004-08-08, Florian Zschocke <edv@zschocke-berlin.de> wrote:
>> Andrew - Supernews <andrew+nonews@supernews.com> wrote:
>>>How long do you wait for it?
>>>
>> Not at all at the moment. I send the data and if that is done I read 
>> from the socket.
>
>That's no good at all. How are you dealing with other command-response
>sequences?
>
>> So what can I do ? A generic wait will not help. I could loop until 
>> select() gives a positive value but that will be too expensive ? 
>
>select() with a suitable timeout?
>
>It sounds to me as though you have written your application in complete
>ignorance of basic programming principles. You can not possibly assume that
>all server responses will be immediately available as soon as you look for
>them; you will _always_ have to allow for the possibility that you have to
>wait for the server. Posting is no different from any other commands in this
>respect (unless of course you are a spammer).

Yes, and no - I'm no spammer. But it the first time I got into contact 
with socket  programming and I'm everything else than familiar with 
that. 

>How you go about waiting depends entirely on the programming model you are
>using for your application - you might choose to block the thread, or to
>use an event-driven state model, or any of a number of other variations.
>
>
>The fact that you are even asking this question shows that you do not
>understand what you are trying to do.
>
Not in detail, there are some questions still left.
For me is clear that on a client- server model that there has to be a 
time independent protocol. 
In all other cases the command - response communication works fine.
I took the principe of the socket programming out the examples I found 
on the net. 
But I see now I have to read that stuff again. 

>You do not and can not know whether your POST succeeded until you get the
>server's response. Furthermore, pipelining POST commands is forbidden,
>which means that you MUST NOT send any more commands to the server until
>you get the server's response back after sending the article.
>
Ok - I thought that it has to be that way.
>
>The "recommended ID" feature isn't universal; you can't rely on it at all.
>(Our server doesn't support it, for example, since it has no way of
>knowing which domain to use for the RHS).
>
Ok, that is also a important information for me.
Thank you
Technical Details
Message-ID: <4116310f$0$28840$9b4e6d93@newsread4.arcor-online.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.20140818.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!news.arcor.de!not-for-mail
References: <slrnchc8gv.1pnu.andrew+nonews@trinity.supernews.net>

Show Full Headers
Complete Article Headers
Message-ID: <4116310f$0$28840$9b4e6d93@newsread4.arcor-online.net>
Subject: Re: POST -> no response, but message is posted.
Date: Sun, 08 Aug 2004 13:56:31 +0000
From: Florian Zschocke <edv@zschocke-berlin.de>
References: <slrnchc8gv.1pnu.andrew+nonews@trinity.supernews.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.20140818.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!news.arcor.de!not-for-mail
Newsgroups: news.software.nntp
User-Agent: Xnntp/beta02 (PPC Mac OS 10.3)
MIME-Version: 1.0
Content-Type: text/plain
Lines: 59
Organization: Arcor
NNTP-Posting-Date: 08 Aug 2004 15:56:31 MEST
NNTP-Posting-Host: f193fb55.newsread4.arcor-online.net
X-Trace: DXC=bdBoN@Q[W; ohlIa[YhA;
 >c:ejgIfPPlddjW\KbG]kaMhlSE5DYV?adaJWRgEDY<gRkfLA7=4=P?HiGR]^?U;
 gaId`J7J<n5kd]o
X-Complaints-To: abuse@arcor.de