🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
4 messages
4 total messages Started by Bill Wohler Fri, 08 Nov 1996 00:00
Re: nnmaster keeps getting stuck (and FAQ doesn't help)
#8152
Author: Bill Wohler
Date: Fri, 08 Nov 1996 00:00
15 lines
1094 bytes
"Paul J. Lucas" <pjl@no-more-spam.org> writes:
>	The goal, of course, being to fix the *root* problem, not just
>	Band-Aid it.

  The FAQ maintainer is always glad, of course, to replace the
  Band-Aids.  If you do discover better solutions--don't be shy--send
  them in!
-- 

Bill Wohler <wohler@newt.com>   ph: +1-415-854-1857  fax: +1-415-854-3195
Say it with MIME.  Maintainer of comp.mail.mh and news.software.nn FAQs.
If you're passed on the right, you're in the wrong lane.

Re: nnmaster keeps getting stuck (and FAQ doesn't help)
#8159
Author: R. Stewart Ellis
Date: Tue, 12 Nov 1996 00:00
32 lines
1883 bytes
"Paul J. Lucas" <pjl@no-more-spam.org> writes:

 >In <55vtfn$7rl@samba.rahul.net> Bill Wohler <wohler@newt.com> writes:

 >>"Paul J. Lucas" <pjl@no-more-spam.org> writes:
 >>>	The goal, of course, being to fix the *root* problem, not just
 >>>	Band-Aid it.

 >>  The FAQ maintainer is always glad, of course, to replace the
 >>  Band-Aids.  If you do discover better solutions--don't be shy--send
 >>  them in!

 >	As I pointed out, not even the Band-Aids worked.  Now, does
 >	anybody have any answers -- and I mean answers -- to my
 >	original question?

I believe I was the contributor of the band-aid mentioned above.  I have
solved the problem for once and for all:  I no longer run nnmaster, but
depend on the much more standard NOV database.  I have also been one of the
people encouraging the new maintainer of the code to expunge all the
nnmaster cruft.  That will definitely fix nnmaster.

 >	- Paul

-- 
  R.Stewart(Stew) Ellis, Assoc.Prof., (Off)810-762-9765   ___________________
  Humanities & Social Science,  GMI Eng.& Mgmt.Inst. ()  /   _____  ______
  Flint, MI 48504    Free speech and free software!  /\ /        / /  /  / /
  Web admin:  http://www.gmi.edu/      ellis@gmi.edu   /________/ /  /  / /

Re: nnmaster keeps getting stuck (and FAQ doesn't help)
#8161
Author: Bryan Feir
Date: Wed, 13 Nov 1996 00:00
71 lines
3665 bytes
   I didn't see the first article in this thread, so I'm not sure what
brought this on, but I had a similar problem and fixed it.  Sorry if
this is a 'known' problem, but...

   When we first upgraded to nn 6.5.1, suddenly nnmaster would get stuck
every time we went to do an expire operation.  It would sit for several
hours, then complain finally of a timeout and exit.  Naturally, this
played havoc with the cron jobs that gathered news, as there was a copy
of nnmaster already running.  (We use cron jobs instead of nnmaster's
own daemon mode to have better control of when the program is run as it
hits the network hard, and to limit the newsgroups it requests to those
in somebody's .newsrc file.)

   It seemed that nnmaster was not recognizing the '.' line that signalled
the end of the list of articles in the 'LISTGROUP' command.  So it would
keep reading lines and waiting for the '.' that had already come in, and
eventually time out.

   Further investigation uncovered the root cause...

   A few years ago when we first started using nn 6.4, we had the company's
head newsadmin put the LISTGROUP call into the hub NNTP server.  The code
that was put in was actually in mild violation of the spec: it only ended
lines with \n instead of with \r\n.  This wasn't a problem in 6.4.18, where
the get_server_line() function stripped everything following the first \r
character or the last \n; but it was a problem in 6.5.1, which wouldn't
strip anything unless the line ended with exactly \r\n\0.  The result was
that get_server_line() returned a string of ".\n" to nntp_get_article_list()
instead of ".", and the extra character was enough to cause the comparison
to fail and the client and server to get out of sync in their states.

   The fix was fairly simple, though what I did was probably not the 'most
correct' way of doing it: I just had get_server_line() strip off any \r or
\n characters at the end of the line.  Things have worked since.

*** nntp.c      Mon Oct  7 16:10:20 1996
--- nntp.c.orig Mon Aug 26 00:09:08 1996
***************
*** 250,260 ****
      }
  
      size = strlen(string);
!     while (size > 1 && (string[size-1] == '\n' || string[size-1] == '\r')) {
!         size--;
!         string[size] = '\0';   /* nuke CR/LF or combination */
!     }
!     return size;
  }
  
  /*
--- 250,260 ----
      }
  
      size = strlen(string);
!     if (size < 2 || !(string[size-2] == '\r' && string[size-1] == '\n'))
!       return size;                    /* XXX */
! 
!     string[size-2] = '\0';            /* nuke CRLF */
!     return size-2;
  }
  
  /*

---------------------------+---------------------------------------------------
Bryan Feir           VA3GBF|"A half-truth, like a half-brick, is more forcible
bryan@sgl.ists.ca          | in an argument than a whole one...
jenora@istar.ca            | it carries further."     -- Stephen Leacock
---------------------------+---------------------------------------------------

Re: nnmaster keeps getting stuck (and FAQ doesn't help)
#8167
Author: Steve Day
Date: Sun, 17 Nov 1996 00:00
29 lines
1688 bytes
Paul J. Lucas (pjl@no-more-spam.org) wrote:
: 	As I pointed out, not even the Band-Aids worked.  Now, does
: 	anybody have any answers -- and I mean answers -- to my
: 	original question?
: 
: 	- Paul

   I don't know where your nnmaster is getting stuck because I just 
started reading this group. I am also havin a serious problem with 
nnmaster/in.nnrpd. It seems that it hangs on certain news groups. Mainly 
groups in the misc.jobs.*. It will read articles until it hits a group 
(like misc.jobs.misc) and it will just die. ps auxr shows HEAD (in.nnrpd) 
continuously running and consuming 50 to 60% of the cpu time. It will run 
for hours and I have to kill the process. Next time nnmaster runs, it's 
the same thing.

   I know it's not caused by the groups having a large amount of articles 
in them. I cut the expire time to three days on the problem groups and 
there were only 361 articles in misc.jobs.misc when it locked up for five 
hours.

   I'm new to this news thing so any help possible would be appreciated.

Thanks

Steve Day

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads