Article View: news.software.nntp
Article #14842INN 1.5.1 nnrpd patch to spool posts
From: Kevin Houle
Date: Fri, 07 Feb 1997 00:00
Date: Fri, 07 Feb 1997 00:00
49 lines
1869 bytes
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)
Technical Details
Message-ID:
<slrn45fn52v.5di.kevin@worf.netins.net>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-mailShow Full Headers
Complete Article Headers
Message-ID: <slrn45fn52v.5di.kevin@worf.netins.net> Subject: INN 1.5.1 nnrpd patch to spool posts Date: Fri, 07 Feb 1997 00:00:00 +0000 From: kevin@netins.net (Kevin Houle) 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: 215155191 Distribution: inet Organization: netINS, Des Moines, IA, USA Newsgroups: news.software.nntp