🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #8633

Re: Anonymous Posting to news group.

#8633
From: Mike Bird
Date: Wed, 19 Jun 1996 00:00
63 lines
2483 bytes
vaden@texoma.net (Larry Vaden) wrote:
>[snip]
>They do complain about the slow posting time, however, with inn1.4unoff4.

Larry,

This patch speeds up reader connection/handoff in
INN1.4unoff4.  This fixes slow posting problems
caused by having to start a new nnrpd while
streaming feeds are arriving.

--Mike

--- rc.c.SAFE	Wed Jun 12 15:52:42 1996
+++ rc.c	Wed Jun 12 15:37:12 1996
@@ -36,7 +36,7 @@
 STATIC char		RCnnrpd[] = _PATH_NNRPD;
 STATIC char		RCnnrqd[] = _PATH_NNQRD;
 STATIC char		RCnntpd[] = _PATH_NNTPD;
-STATIC CHANNEL		*RCchan;
+       CHANNEL		*RCchan;    /* Referenced in nc.c */
 STATIC REMOTEHOST	*RCpeerlist;
 STATIC int		RCnpeerlist;
 STATIC REMOTEHOST	*RCnolimitlist;

--- nc.c.SAFE	Wed Jun 12 15:52:48 1996
+++ nc.c	Wed Jun 12 15:37:55 1996
@@ -1090,6 +1090,23 @@
 		*/
 		(void)memcpy((POINTER)bp->Data, (POINTER)&bp->Data[cp->Rest], (SIZE_T)bp->Used);
 		cp->Rest = cp->Lastch = 0;
+		/* mgb@ims.mariposa.ca.us 96/06/12
+		   To speed up new connections, see if any are pending now */
+		{
+		    extern CHANNEL *RCchan;
+		    FDSET readmask;
+		    struct timeval notime;
+		    FD_ZERO(&readmask);
+		    FD_SET(RCchan->fd, &readmask);
+		    notime.tv_sec = notime.tv_usec = 0L;
+		    if (select(RCchan->fd+1, &readmask, (FDSET *)NULL,
+			       (FDSET *)NULL, &notime) > 0) {
+		        /* Update the "reasonably accurate" time. */
+		        if (GetTimeInfo(&Now) < 0)
+			    syslog(L_ERROR, "%s cant gettimeinfo %m", LogName);
+		        (*RCchan->Reader)(RCchan);
+		    }
+		}
 	    } else {
 		bp->Used = cp->Lastch = 0;
 		break;




----------------------------------------------------------
 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: <4q9u59$7hu@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: <4q6eic$c1f@peacenjoy.mikom.csir.co.za> <slrn4sdh06.7uh.hwr@pilhuhn.de> <4q7cnh$6il@venus.texoma.com>

Show Full Headers
Complete Article Headers
Message-ID: <4q9u59$7hu@news.ims.mariposa.ca.us>
Subject: Re: Anonymous Posting to news group.
Date: Wed, 19 Jun 1996 00:00:00 +0000
From: mgb@ims.mariposa.ca.us (Mike Bird)
References: <4q6eic$c1f@peacenjoy.mikom.csir.co.za> <slrn4sdh06.7uh.hwr@pilhuhn.de> <4q7cnh$6il@venus.texoma.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!not-for-mail
X-Deja-AN: 161082682
Organization: Iron Mtn Systems
Newsgroups: news.software.nntp