🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #69665

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

#69665
From: Florian Zschocke
Date: Sun, 08 Aug 2004 11:32
44 lines
2875 bytes
Andrew - Supernews <andrew+nonews@supernews.com> wrote:
>
>
Thank you Andrew
>
>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. So this is heavy to debug - cause the failure will not 
raise if I debug. That leads me to the conclusion that it is time 
dependent. 
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 ? 

>Failing to get a 240 response _at all_ usually means either that the server
>is broken, or that your article terminator is defective (are you correctly
>using CR+LF as line terminator? Are you ensuring there is no garbage such
>as NUL characters in your article? Have you monitored the data being sent
>in such cases to ensure it's correct?)
>
No, I don't think there is a error in the message, cause it is posted 
by the server and as far as I can see it is conform to rfc 850 and 
terminated with \r\n.\r\n. 
 

>If the server is busy the 240 response might be slow, or very slow; your
>timeout for it needs to be several minutes at least.
>
>> What can I do if I want to have a queue for outgoing messages and want to
>> prevent that a message is send twice.
>
>Just make sure you use the same message-id both times, that's enough.
>
For the application it would be better not to wait. If you say, wait 
two seconds to get all the responses,I would say ok lets pause the 
thread for that time. If I don't wait ? 
 
My server gives me a a desired message-id with the 340 response. Can I 
use this ID or is that a uncommon feature and it is better to generate 
the id myself ? 
 
Thank you 

Florian
Technical Details
Message-ID: <41160f3c$0$7309$9b4e6d93@newsread2.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: <slrnchc18b.1pnu.andrew+nonews@trinity.supernews.net>

Show Full Headers
Complete Article Headers
Message-ID: <41160f3c$0$7309$9b4e6d93@newsread2.arcor-online.net>
Subject: Re: POST -> no response, but message is posted.
Date: Sun, 08 Aug 2004 11:32:12 +0000
From: Florian Zschocke <edv@zschocke-berlin.de>
References: <slrnchc18b.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
Content-Transfer-Encoding: binary
Lines: 44
Organization: Arcor
NNTP-Posting-Date: 08 Aug 2004 13:32:12 MEST
NNTP-Posting-Host: 1443e57b.newsread2.arcor-online.net
X-Trace: DXC=BfNbeo2THE3d9772DFAUn2Q5U85hF6f;
 4jW\KbG]kaM8dglQn]=09h4?OL<Tc^A_^=h5@Sej3Om<; oo=1G=RJPd=
X-Complaints-To: abuse@arcor.de