Article View: news.software.nntp
Article #67226CHECK/TAKETHIS and deadlocks
From: Miquel van Smoorenburg
Date: Sat, 22 Nov 2003 15:46
Date: Sat, 22 Nov 2003 15:46
36 lines
2713 bytes
2713 bytes
I have a few doubts about how CHECK/TAKETHIS behaves on the client and on the server. I read draft-ietf-nntpext-streaming-00.txt, which says that CHECK and TAKETHIS may be pipelined. Pipelining is defined in draft-ietf-nntpext-base-20, which says "If the client uses blocking system calls to send commands, it MUST ensure that the amount of text sent in pipelining does not cause a deadlock between transmission and reception. The amount of text involved will depend on window sizes in the transmission layer, and is typically 4k octets for TCP." 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. Nothing is said about the server. Is the server allowed to just use blocking system calls, and is solely the client responsible for making sure no deadlock occurs ? I suppose so, since the language is quite similar to the SMTP RFCs which are a bit more clear in this regard. Correct ? It also makes sense, since the client can send unlimited CHECK requests and you can't expect the server to buffer an unlimited amount of those. The question ofcourse is, how do _existing_ implementations handle this. Do INN, Diablo, Cyclone, etc all circumvent this deadlock in the client, server, or both ? If I wrote a server and client from scratch, how should I handle it ? Mike.
Technical Details
Message-ID:
<bpo0da$f9v$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-mailShow Full Headers
Complete Article Headers
Message-ID: <bpo0da$f9v$1@news.cistron.nl> Subject: CHECK/TAKETHIS and deadlocks Date: Sat, 22 Nov 2003 15:46:50 +0000 From: "Miquel van Smoorenburg" <miquels@netscum.invalid> 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: 36 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 1069516010 15679 62.216.29.200 (22 Nov 2003 X-Complaints-To: abuse@cistron.nl NNTP-Posting-Date: Sat, 22 Nov 2003 15:46:50 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: miquels@cistron-office.nl (Miquel van Smoorenburg)