🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Kevin Houle Fri, 07 Feb 1997 00:00
INN 1.5.1 nnrpd patch to spool posts
#14842
Author: Kevin Houle
Date: Fri, 07 Feb 1997 00:00
49 lines
1869 bytes
The following patch was adapted from a similar patch
posted by T. William Wells for INN 1.4. The purpose
is to cause nnrpd to spool posts to in.coming before
attempting to write to the server. This eliminates 
the user-visable pause when posting to a busy news
server and let's rnews -U do the actual posting.

Adapting the patch to INN 1.5.1 was pretty simple, 
as the Spoolit() function is already there. It's just
not a stock option to use it rather than directly
posting to the server.

--
Kevin Houle
kevin@netins.net
netINS, Inc.


*** post.c.orig Thu Jan  9 03:14:47 1997
--- post.c      Fri Feb  7 14:31:24 1997
***************
*** 14,19 ****
--- 14,20 ----
  
  #include "post.h"
  
+ #define NNRP_SPOOL_FIRST
  #define FLUSH_ERROR(F)                (fflush((F)) == EOF || ferror((F)))
  #define HEADER_DELTA          20
  
***************
*** 827,832 ****
--- 828,839 ----
      if ((p = (char *)HandleHeaders()) != NULL)
          return p;
  #endif /* defined(DO_PERL) */
+ 
+ #if defined(NNRP_SPOOL_FIRST)
+     /* Spool article for rnews -U to post */
+     (void)sprintf(Error, CANTSEND, "article", strerror(errno));
+     return Spoolit(article,Error);
+ #endif /* defined (NNRP_SPOOL_FIRST) */
  
      /* Open a local connection to the server. */
      if (RemoteMaster)


Re: INN 1.5.1 nnrpd patch to spool posts
#15360
Author: Dave Pascoe
Date: Wed, 26 Feb 1997 00:00
11 lines
896 bytes

Strange, but I can't seem to find T. William Wells' original spooling
patch for INN 1.4...anyone have a pointer?

-- 
Dave Pascoe  | mailto:dave@mathworks.com  | Voice: 508.647.7362
KM3T         | http://www.mathworks.com   |   FAX: 508.647.7002
PGP fingerprint: 53 AD 71 88 2F AA 45 AC D0 2E 68 91 71 77 39 AF

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