🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #16786

ctlinnd addhist breakage: Solaris 2.5/INN 1.5[.1]

#16786
From: Larry Rosenman
Date: Tue, 08 Apr 1997 00:00
80 lines
2994 bytes
-----BEGIN PGP SIGNED MESSAGE-----

[mailed to inn-bugs@isc.org as well]

I have had an unstable news server for a number of weeks, so I decided to
run makehistory -b -u -n -v.  I would come back after it running for >1 day
to find it hung in a poll() for the response to a ICC_ADDHIST command. 

Investigating further, I found a CCreader: short read error. 
Looking into it, I found that cc.c uses a BUFSIZ buffer to read the packet.

Unfortunately, this is 1024 on Solaris 2.5[.1].  With the massive cross-posting
in some groups, and the large group+Message-ID names, 1K ain't close enough
for some articles. 

James: Mayhaps this should be configurable?

I made the following patch which SEEMS to fix it.

Let me know if I screwed anything else up.  This is against
1.5, but cc.c hasn't changed from 1.5 -> 1.5.1

Larry


*** old/cc.c	Mon Apr  7 21:11:34 1997
- --- cc.c	Mon Apr  7 21:16:47 1997
***************
*** 1576,1583 ****
      int			written;
  #endif	/* defined(DO_HAVE_UNIX_DOMAIN) */
      int			i;
!     char		buff[BUFSIZ + 2];
!     char		copy[BUFSIZ + 2];
      char		*argv[SC_MAXFIELDS + 2];
      int			argc;
      int			len;
- --- 1576,1583 ----
      int			written;
  #endif	/* defined(DO_HAVE_UNIX_DOMAIN) */
      int			i;
!     char		buff[BIG_BUFFER + 2];
!     char		copy[BIG_BUFFER + 2];
      char		*argv[SC_MAXFIELDS + 2];
      int			argc;
      int			len;
***************
*** 1591,1597 ****
  
  #if defined (DO_HAVE_UNIX_DOMAIN)
      
!     i = RECVorREAD(CCchan->fd, buff, BUFSIZ) ;
      if (i < 0) {
  	syslog(L_ERROR, "%s cant recv CCreader %m", LogName);
  	return;
- --- 1591,1597 ----
  
  #if defined (DO_HAVE_UNIX_DOMAIN)
      
!     i = RECVorREAD(CCchan->fd, buff, BIG_BUFFER) ;
      if (i < 0) {
  	syslog(L_ERROR, "%s cant recv CCreader %m", LogName);
  	return;

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBM0mzKTy2RjC/Zwe5AQH1JgP8DO5JOm2SnxNpqx2YbTScVZCG8GxJ/cH+
q3pdZXg9WmXYYHvPtfZ2OKMb0Cl5c85t6CSoSv87NfsP5VajGIPxopdII9f3q8fS
OW+Ntw925LGz2SJz0l48WxFN8fYORv+ux2eUGXnF90n15AJ5CCQ9v0/+M67mGuLe
fuavZwHZ/c8=
=ajs/
-----END PGP SIGNATURE-----
-- 
Larry Rosenman                      http://www.lerctr.org/~ler
Phone: +1 972-399-0210 (voice) Internet: ler@lerami.lerctr.org
US Mail: 900 Lake Isle Circle, Irving, TX 75060-7726

Technical Details
Message-ID: <E8AtDA.IE0@lerami.lerctr.org>
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

Show Full Headers
Complete Article Headers
Message-ID: <E8AtDA.IE0@lerami.lerctr.org>
Subject: ctlinnd addhist breakage: Solaris 2.5/INN 1.5[.1]
Date: Tue, 08 Apr 1997 00:00:00 +0000
From: ler@lerami.lerctr.org (Larry Rosenman)
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: 231442500
Sender: ler@lerami.lerctr.org (Larry Rosenman)
Organization: Larry Rosenman's personal UnixWare 2.1.1 system
Newsgroups: news.software.nntp
X-Newsposter: trn 4.0-test56 (2 Mar 97)