Thread View: news.software.nntp
1 messages
1 total messages
Started by Larry Rosenman
Tue, 08 Apr 1997 00:00
ctlinnd addhist breakage: Solaris 2.5/INN 1.5[.1]
Author: Larry Rosenman
Date: Tue, 08 Apr 1997 00:00
Date: Tue, 08 Apr 1997 00:00
80 lines
2994 bytes
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
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