🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #67268

Re: CHECK/TAKETHIS and deadlocks

#67268
From: Miquel van Smoorenburg
Date: Wed, 26 Nov 2003 16:30
41 lines
3330 bytes
In article <20031124205121.603$22@newsreader.com>,
Curt Welch <curt@kcwc.com> wrote:
>"Miquel van Smoorenburg" <miquels@cistron.nl> wrote:
>> The deadlock situation being, ofcourse, that the server is
>> sending a big article using TAKETHIS and not listening on
>> the socket, while the client is sending a bunch of CHECK commands
>> and also not listening -> deadlock.
>
>The use of the words "client" and "server" get confusing when you talk
>about a streaming feed.  It's normally done from "server" to "server", so
>which side are you thinking of as the "client"?  Your question would be
>more clear if you just talked about the sending side and the receiving side
>of the feed.
>
>If you stick with normal nntp conventions, and call the client the side
>which starts the connection and sends the commands, then the client is the
>one sending articles with TAKETHIS, not the server, so what you say above
>seems backwards.  I don't know what the conect of the documentation you
>were reading might have chosen to use.

Well I was just a bit confused, I guess. I know how the protocol
works - the receiving side of my server is already running and
taking both CHECK/TAKETHIS and IHAVE feeds. I had it running a
full feed for weeks without leaking (yay valgrind!).

It's a pet project I have been doing over the last year. It is an
event-based multi-threaded server with cyclic storage and history.
It's interesting to play around with events and threads. Right now
the NNTP receiver is one thread, the storage stuff is multithreaded.
But I'm still working on the model, I might still change it.

>Doing a good job of sending a streaming feed is by far the most complex
>NNTP programming there is.  At least I think so.

I'm about to start on the sending part. There's still a lot
to work out - queueing etc. Thanks a lot for your comments.
Hopefully I'll be able to get it right now!

Mike.
-- 
If I seem short sighted, it is because I stand on the shoulders of midgets.
Technical Details
Message-ID: <bq2kfv$3us$1@news.cistron.nl>
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!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!aotearoa.belnet.be!news.belnet.be!newsgate.cistron.nl!news.cistron.nl!not-for-mail
References: <bpo0da$f9v$1@news.cistron.nl> <20031124205121.603$22@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <bq2kfv$3us$1@news.cistron.nl>
Subject: Re: CHECK/TAKETHIS and deadlocks
Date: Wed, 26 Nov 2003 16:30:55 +0000
From: "Miquel van Smoorenburg" <miquels@netscum.invalid>
References: <bpo0da$f9v$1@news.cistron.nl> <20031124205121.603$22@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!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!aotearoa.belnet.be!news.belnet.be!newsgate.cistron.nl!news.cistron.nl!not-for-mail
Newsgroups: news.software.nntp
Organization: Cistron Group
Lines: 41
Reply-To: "Miquel van Smoorenburg" <miquels@cistron.nl>
NNTP-Posting-Host: subspace.cistron-office.nl
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8bit
X-Trace: ncc1701.cistron.net 1069864255 4060 62.216.29.200 (26 Nov 2003
X-Complaints-To: abuse@cistron.nl
NNTP-Posting-Date: Wed, 26 Nov 2003 16:30:55 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: miquels@cistron-office.nl (Miquel van Smoorenburg)