🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #51633

Download Speed

#51633
From: Jack
Date: Wed, 04 Apr 2001 22:33
65 lines
2867 bytes
Is there any command that can be sent to news server that will make download
faster?  (I think I tried something like "Mode Reader" but that didn't help).

If anyone knows java, the following code connects to news server and tries to
download the subjects of all the posts from a newsgroup called
"24hoursupport.helpdesk" .. I choose this newsgroup because it seems to have
lots of posts.

The problem is that the download speed of this code on my computer is less than
5K. But the regular newsreader can download headers from the same newsgroup with
the speed of between 30K to 50K.

Does anyone knows why the speed is different?


import java.io.*;
import java.net.*;
import java.util.StringTokenizer;

public class Test 
{

public static void main(String[] args) throws Exception
{

Socket sock = new Socket("yournewsserver", 119);

BufferedReader in = new BufferedReader (new
InputStreamReader(sock.getInputStream()));
		
PrintWriter out = new PrintWriter(new BufferedWriter (new
OutputStreamWriter(sock.getOutputStream())),true);
		
System.out.println(in.readLine());
		
out.println("AUTHINFO USER " + "your_login");
System.out.println(in.readLine());
out.println("AUTHINFO PASS " + "your_password");
System.out.println(in.readLine());
		
out.println("GROUP " + "24hoursupport.helpdesk");
String temp = in.readLine();
System.out.println(temp);
		
StringTokenizer tok = new StringTokenizer(temp);
tok.nextToken();
tok.nextToken();
String begin = tok.nextToken();
String end = tok.nextToken();		
		
out.println("XHDR " + "Subject " +  begin + "-" + end);
		
while (true)
{
	temp = in.readLine();
	System.out.println(temp);
	if (temp.equals("."))
	break;			
}
		
out.println("QUIT");
}	
}
Technical Details
Message-ID: <b88nct86r5onui9qjoaaj8pak8uslkt2a0@4ax.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!supernews.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!europa.netcrusader.net!144.212.100.101!newsfeed.mathworks.com!cyclone.swbell.net!nnrp3.sbc.net.POSTED!not-for-mail
References: <hjkict03k157fjakqr5effohj7ugjl2h9e@4ax.com> <Dqdy6.1591$MM.68717@ozemail.com.au>

Show Full Headers
Complete Article Headers
Message-ID: <b88nct86r5onui9qjoaaj8pak8uslkt2a0@4ax.com>
Subject: Download Speed
Date: Wed, 04 Apr 2001 17:33:49 -0500
From: "Jack" <jkt@home.net>
References: <hjkict03k157fjakqr5effohj7ugjl2h9e@4ax.com> <Dqdy6.1591$MM.68717@ozemail.com.au>
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!supernews.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!europa.netcrusader.net!144.212.100.101!newsfeed.mathworks.com!cyclone.swbell.net!nnrp3.sbc.net.POSTED!not-for-mail
Newsgroups: news.software.nntp
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 64
NNTP-Posting-Host: 64.123.239.43
X-Complaints-To: abuse@swbell.net
X-Trace: nnrp3.sbc.net 986423512 64.123.239.43 (Wed, 04 Apr 2001 17:31:52 CDT)
NNTP-Posting-Date: Wed, 04 Apr 2001 17:31:52 CDT
Organization: SBC Internet Services