From:	AITGW::"ferroni%ICCGCC.DECNET.AB.COM@VM1.NoDak.EDU"  6-DEC-1991 13:09:32.19
To:	Multiple recipients of list ANU-NEWS <ANU-NEWS@NDSUVM1>
CC:	
Subj:	NNTP_SERVER v6.03 bug and fix -- hangs on large files...

Received: by AITGW.DECnet (utk-mail11 v1.5) ; Fri, 6 Dec 91 13:08:00 EST
Received: from vm1.NoDak.edu by aitgw.ge.com (5.65/GE Gateway 1.4)
	id AA19252; Fri, 6 Dec 91 13:07:42 -0500
Message-Id: <9112061807.AA19252@aitgw.ge.com>
Received: from NDSUVM1.BITNET by VM1.NoDak.EDU (IBM VM SMTP R1.2.1MX) with BSMTP id 1714; Fri, 06 Dec 91 12:07:00 CST
Received: from NDSUVM1.BITNET by NDSUVM1.BITNET (Mailer R2.07) with BSMTP id
 2411; Fri, 06 Dec 91 12:06:58 CST
Date:         Thu, 5 Dec 1991 14:55:05 EST
Reply-To: ferroni%ICCGCC.DECNET.AB.COM@VM1.NoDak.EDU
Sender: ANU-NEWS Discussion <ANU-NEWS@VM1.NoDak.EDU>
From: ferroni%ICCGCC.DECNET.AB.COM@VM1.NoDak.EDU
Subject:      NNTP_SERVER v6.03 bug and fix -- hangs on large files...
To: Multiple recipients of list ANU-NEWS <ANU-NEWS@NDSUVM1>
 
   Recently, our newsfeed "broke" for no apparent reason.  The server node would
attempt to feed us, but it's nntp process would hang, and eventually time out.
The problem turned out to be that when an item of size ART_STRLEN or greater was
sent, our system couldn't create a temporary file because the NNTP_SCRATCH
logical pointed to a nonexistent directory.  That was MY problem (which I fixed)
-- however, my nntp process wasn't reporting the problem to the server, and the
server "hung" waiting for a response, rather than continuing with the next item
(proper) or aborting with an error (improper, but cleaner than a hang...). An
error message is generated in the append_line() procedure, but when ihave_2()
reports it, it wasn't properly terminated.   Below is a simple fix that will
allow NNTP to continue without hanging when this situation occurs.
  The NNTP_SERVER.C version is 6.03, last updated 11-Mar-1991 by GIH.
 
  In NNTP_SERVER.C in the IHAVE_2() procedure, modify 7th line from the end
from:
         sprintf(sbuf,"436 %s",msgbuf);
 
to:
         sprintf(sbuf,"436 %s\r\n",msgbuf);
 
(this is line 2613 in my copy of NNTP_SERVER.C).
 
-cpf
--
C. Paul Ferroni          \    Internet: ferroni@iccgcc.decnet.ab.com
Allen-Bradley Inc,        \    (voice: 216-646-4114)
Highland Hts, Ohio         \     "...thanks for noticin'..."  -Eeoyore
