🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #7265

Re: NN via NNTP: How to suppress getting active file?

#7265
From: Dave Olson
Date: Sun, 05 Mar 1995 02:27
131 lines
5016 bytes
kimc@w8hd.w8hd.org (Kim Culhan) writes:

| giachino@nemo.cefriel.it (Luca Giachino) writes:
| 
| >I fixed the problem by storing in the init file the following
| >statement:
| 
| >	set show-purpose-mode off

That controls the newsgroups fetch, but not the active file fetching.

| >This tells nn to not contact the news server when showing a group
| >whose purpose is unknown.
| 
| Presently the connection to the NNTP machine is over a modem so it takes
| a long time to transmit the active file via NNTP.
| 
| I'd like to have it not bother with getting a list of all available groups.

I did part this, for similar reasons.  But only  to keep from getting
active.times.  Here are some diffs for 6.5.0b3.  I still fetch the active
file because the assumption of having the full newsgroup list was just
too widespread.  But with compression, even for a server with 4000 groups,
it's still not too bad, if your ppp/slip has compression.  For me, it's
4500 groups with about 150KB in the active file, at about 3KByte/sec,
so I can tolerate that.

It probably wouldn't be too hard to not get the active file if you gave
groups on the command line, but I didn't do that.  If your server has
thousands of groups, but you only subscribe to a few, you could build
up a 'fake' active file by only fetching the info for those groups, but
if you have very many groups, the extra time to request and wait for
each group's info is *much* slower.

set new-group-action to 0 to suppress getting active.times (as well
as the "set show-purpose-mode off" above, of course).

================================================================
RCS file: RCS/db.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -c -r1.2 -r1.3
*** 1.2	1994/05/16 01:39:28
--- 1.3	1995/01/03 00:54:01
***************
*** 42,47 ****
--- 42,49 ----
    *news_lib_directory;
  import int db_data_subdirs;
  
+ import int new_group_action;
+ 
  export master_header master;
  #ifdef MALLOC_64K_LIMITATION
  export group_header **active_groups = NULL;
***************
*** 1149,1157 ****
  		nn_exitmsg(1, "nn: can't create hash table\n");
  	}
  
  #ifdef NNTP
! 	if (use_nntp)
! 		timfp = nntp_fopen_list("LIST active.times");
  	else
  #endif
  		timfp = fopen(relative(news_lib_directory, "active.times"), "r");
--- 1151,1167 ----
  		nn_exitmsg(1, "nn: can't create hash table\n");
  	}
  
+ 	/* this is needed to be able to automatically notice new newsgroups;
+ 	 * to allow for people reading over slow links, don't do it if
+ 	 * new_group_action is set to 0 (never; ignore new groups).
+ 	 * olson@sgi.com 1/95. */
  #ifdef NNTP
! 	if (use_nntp) {
! 	 	if(!new_group_action)
! 			timfp = NULL;
! 		else
! 			timfp = nntp_fopen_list("LIST active.times");
! 	}
  	else
  #endif
  		timfp = fopen(relative(news_lib_directory, "active.times"), "r");
===================================================================
RCS file: RCS/nn.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -c -r1.2 -r1.3
*** 1.2	1995/01/02 23:26:41
--- 1.3	1995/01/03 00:41:21
***************
*** 844,855 ****
  
   nnspew:
  
      open_master(OPEN_READ);
  
      switch (who_am_i) {
  
       case I_AM_NN:
- 	visit_init_file(0, argv[1]);
  	init_term(1);
  
  	if (say_welcome) {
--- 844,862 ----
  
   nnspew:
  
+ 	/* want to set variables before making nntp connection; in
+ 	 * particular, the news_group_action and nntp-debug variables should
+ 	 * be able to be set before open_master causes active.times to
+ 	 * be fetched, etc.. olson@sgi.com 1/95
+ 	*/
+     if(who_am_i == I_AM_NN)
+ 		visit_init_file(0, argv[1]);
+ 
      open_master(OPEN_READ);
  
      switch (who_am_i) {
  
       case I_AM_NN:
  	init_term(1);
  
  	if (say_welcome) {
===================================================================
--

The most beautiful things in the world are              |   Dave Olson
those from which all excess weight has been             |   Silicon Graphics
removed.  -Henry Ford                                   |   olson@sgi.com
Technical Details
Message-ID: <3jb7im$mnk@gazette.engr.sgi.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!news.moneng.mei.com!uwm.edu!lll-winken.llnl.gov!enews.sgi.com!gazette.engr.sgi.com!anchor.engr.sgi.com!olson
References: <3injt3$3le@w8hd2.w8hd.org> <giachino.793986811@nemo.cefriel.it> <3jap0q$100@w8hd.w8hd.org>

Show Full Headers
Complete Article Headers
Message-ID: <3jb7im$mnk@gazette.engr.sgi.com>
Subject: Re: NN via NNTP: How to suppress getting active file?
Date: Sun, 05 Mar 1995 02:27:34 +0000
From: olson@anchor.engr.sgi.com (Dave Olson)
References: <3injt3$3le@w8hd2.w8hd.org> <giachino.793986811@nemo.cefriel.it> <3jap0q$100@w8hd.w8hd.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!news.moneng.mei.com!uwm.edu!lll-winken.llnl.gov!enews.sgi.com!gazette.engr.sgi.com!anchor.engr.sgi.com!olson
Newsgroups: news.software.nn
Organization: Silicon Graphics, Inc. Mountain View, CA
Lines: 131
NNTP-Posting-Host: anchor.engr.sgi.com
Keywords: nntp
X-Newsreader: NN version 6.5.0 #2 (NOV)