🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #60201

Aborting NNTP commands

#60201
From: Tim Mavers
Date: Tue, 03 Sep 2002 20:03
26 lines
2006 bytes
I am writing a basic NNTP client in C# (dotnet) and am trying to determine
what is the best way I can abort a (potentially) long NNTP command.  I am
only interested in the protocol design itself (rather than specific C#
semanatics).

For example, after I send a "LIST" command to retrieve a list of all
available newsgroups, my client simply keeps reading (through the socket)
lines of data until it receives a "." (or connection is closed).

This works fine, and I have accomplished a somewhat "abortable" process by
creating a new thread to handle this.   However, is there a way to cancel
the actual transmission of text (from the News server)?  Let's say I am on a
28.8k (or slower) connection and getting a list of newsgroups (> 60,000 on
my Giganews server) can take a few mins.  What happens if someone cancels in
the middle.  AFAICT, the server is just sending a stream of data.  Is
closing the connection (abruptly during the transfer) a desired approach?

I assume this issue will come up when I start receiving actual messages
too--I am sure encoded binary messages could take some time as well and may
be aborted enroute.

Thanks,



Technical Details
Message-ID: <3d7514d8$0$5514$45beb828@newscene.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!newsfeed.news2me.com!novia!newscene.com!newscene!newscene!novia!novia!sequencer.newscene.com!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <3d7514d8$0$5514$45beb828@newscene.com>
Subject: Aborting NNTP commands
Date: Tue, 03 Sep 2002 20:03:08 +0000
From: "Tim Mavers" <webview@hotmail.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!newsfeed.news2me.com!novia!newscene.com!newscene!newscene!novia!novia!sequencer.newscene.com!not-for-mail
Newsgroups: news.software.nntp
Lines: 25
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000