🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #60202

Re: Aborting NNTP commands

#60202
From: Erik Hensema
Date: Tue, 03 Sep 2002 20:45
24 lines
2429 bytes
Tim Mavers (webview@hotmail.com) wrote:
> 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?

It's the only way. The server should be able to take it.

-- 
Erik Hensema (erik@hensema.net)                             ICQ# 8280101
Quoting-HOWTO: http://www.leerquoten.nl
Technical Details
Message-ID: <slrnana7ra.367.usenet@dexter.hensema.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-nue1.dfn.de!uni-erlangen.de!elvis.franken.de!chico.franken.de!news.franken.de!news.nl.linux.org!humbolt.nl.linux.org!news.hensema.net!cc78409-a.hnglo1.ov.nl.home.com!not-for-mail
References: <3d7514d8$0$5514$45beb828@newscene.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnana7ra.367.usenet@dexter.hensema.net>
Subject: Re: Aborting NNTP commands
Date: Tue, 03 Sep 2002 20:45:30 +0000
From: Erik Hensema <usenet@smac.hensema.net>
References: <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!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-nue1.dfn.de!uni-erlangen.de!elvis.franken.de!chico.franken.de!news.franken.de!news.nl.linux.org!humbolt.nl.linux.org!news.hensema.net!cc78409-a.hnglo1.ov.nl.home.com!not-for-mail
Newsgroups: news.software.nntp
Organization: Hensema
Lines: 23
Reply-To: erik@hensema.net
NNTP-Posting-Host: dexter.ipv6.hensema.net
X-Trace: dexter.hensema.net 1031085930 3273 3ffe:8280:10:a10::1 (3 Sep 2002 20:45:30 GMT)
X-Complaints-To: news@hensema.net
NNTP-Posting-Date: Tue, 3 Sep 2002 20:45:30 +0000 (UTC)
User-Agent: slrn/0.9.7.4 (Linux)