🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #7838

Re: INNXMIT robust/fast streaming (UNOFF4)

#7838
From: Mike Bird
Date: Tue, 21 May 1996 00:00
41 lines
1920 bytes
This is a bug fix for the unoff4 robust/fast streaming patch
originally posted 03/15/96.  The bug it fixes is benign but results in
occassional "stalloc: internal error" messages when streaming mostly
small articles to a slow server.

--Mike

--- innxmit.c.mgb1	Sat May 18 16:16:15 1996
+++ innxmit.c	Sat May 18 16:36:44 1996
@@ -1527,8 +1527,18 @@
 		QIOclose(qp);
 		continue;
 	    }
-	    while (stnq >= STNBUF && !GotInterrupt && !GotAlarm) { /*
need to empty a buffer */
-	      {
+	    /* 18May96 mgb@yosemite.net fixed bug identified by
+	       fubar@yoda.fdt.net which caused stalloc:Internal error
+	       if alarm went off while all buffers were in use */
+	    while (stnq >= STNBUF) { /* need to empty a buffer */
+	        {
+		    if (GotAlarm) {
+		        (void)fprintf(stderr, "Timed out\n");
+		        /* Don't resend the current article. */
+		        RequeueRestAndExit((char *)NULL, (char *)NULL);
+		    }
+		    if (GotInterrupt)
+		        Interrupted(Article, MessageID);
 		    if (!stream_process(FALSE)) {
 			RequeueRestAndExit(Article, MessageID);
 		    }


----------------------------------------------------------
 Mike Bird          Tel: 209-742-5000   FAX: 209-966-3177
 President          POP: 209-742-5333   NOC: 209-742-9979 
 Iron Mtn Systems      http://www.ims.mariposa.ca.us/


Technical Details
Message-ID: <4nrs3g$26n@news.ims.mariposa.ca.us>
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!not-for-mail
References: <4ibb8o$h5r@news.ims.mariposa.ca.us>

Show Full Headers
Complete Article Headers
Message-ID: <4nrs3g$26n@news.ims.mariposa.ca.us>
Subject: Re: INNXMIT robust/fast streaming (UNOFF4)
Date: Tue, 21 May 1996 00:00:00 +0000
From: mgb@ims.mariposa.ca.us (Mike Bird)
References: <4ibb8o$h5r@news.ims.mariposa.ca.us>
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!not-for-mail
X-Deja-AN: 155890321
Organization: Iron Mtn Systems
Newsgroups: news.software.nntp