🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #69678

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

#69678
From: Florian Zschocke
Date: Mon, 09 Aug 2004 07:08
37 lines
2918 bytes
curt@kcwc.com (Curt Welch) wrote:
>
Thank you Curt for that detailed answer
>
>Protocols like NNTP do not require the more complex non-blocking reads.
>However, if you want a program which is dealing with multiple connections
>at the same time, you need non-blocking reads so that the program can work
>on a response from one connection, while waiting for the next response on
>the second connection.

So what i have now is, that I am sure that I use *blocking* cause 
non-bolcking is never set with fnctl(). 
Do I understand this right, that even if I use non-blocking sockets, I 
will still not be able to have a asynchronous or parallel download of 
information on one socket? 


>If your program is not trying to do anything else while it's waiting for
>the response from the server, then you should use a blocking read, instead
>of using a non-blocking read, and sleeping for 500 ms between checks for
>data.  It's poor technique to force your program to delay for 500 ms if the
>
Like you mentioned before, that was a mistake and did not change 
anything in the behavior of my program. My mistake was that I left some 
characters on the socket. I don't use select anymore. To speed up 
things I have detached the time consuming download from the socket as 
thread. In my GUI if you download a message with a binary and step to 
the next message before the binary is there, the program will make up a 
new socket. In praxis that dose not happen often. But perhaps I have to 
set a limit of sockets to protect the server. 
Is that a bad style, to have more than one socket ? Could I do the same 
thing I do now with multiple blocking sockets with one non-blocking 
socket ? 


Thank you for your time and help
Technical Details
Message-ID: <D8293589-E9D2-11D8-BF7C-000393453BC2-2554-000001A80A065E1F%edv@zschocke-berlin.de>
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!t-online.de!peernews3.colt.net!newsfeed.stueberl.de!uucp.gnuu.de!newsfeed.arcor.de!news.arcor.de!not-for-mail
References: <20040808224221.335$Rb@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <D8293589-E9D2-11D8-BF7C-000393453BC2-2554-000001A80A065E1F%edv@zschocke-berlin.de>
Subject: Re: POST -> no response, but message is posted.
Date: Mon, 09 Aug 2004 07:08:00 +0000
From: Florian Zschocke <edv@zschocke-berlin.de>
References: <20040808224221.335$Rb@newsreader.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.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!peernews3.colt.net!newsfeed.stueberl.de!uucp.gnuu.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: 37
Organization: Arcor
NNTP-Posting-Date: 09 Aug 2004 09:08:00 MEST
NNTP-Posting-Host: 520c91d0.newsread2.arcor-online.net
X-Trace: DXC=R?_HD7<E\A:F:^Y; boJ3Y0Q5U85hF6f;
 4jW\KbG]kaM8dglQn]=09h4>cBg1AQ^5T3h5@Sej3Om<; <PG[2hY8Ne4
X-Complaints-To: abuse@arcor.de