Article View: news.software.nntp
Article #43476Re: dreaderd problem
From: Nickolai Zeldovich
Date: Tue, 18 Jan 2000 00:00
Date: Tue, 18 Jan 2000 00:00
61 lines
2432 bytes
2432 bytes
In article <860s0o$rqa$1@mired.zark.thedonkeys.org>, gmwils@eisa.net.au wrote:
>I've upgraded Diablo to 1.27, and we are running it on slackware linux, kernel
>2.0.34. Any ideas as to the problem?
I'm guessing you didn't have this problem prior to 1.27? Try applying
this patch to 1.27 and see if it helps any (attached at the end). If
not, you could comment out the new code in 1.27 that checks for dead
connections; I don't think there were any other modifications lately
that'd cause this. Commenting out these lines (in dreaderd/reader.c,
around line 115) should be sufficient:
for (i = 0; i < MaxFds; ++i) {
if (FD_ISSET(i, &wfds) && (!(FD_ISSET(i, &rfds)))) {
FD_SET(i, &rfds);
FD_SET(i, &read_only_to_find_eof_fds);
}
}
And the patch which might help..
*** reader.c 2000/01/08 20:40:07 1.2
--- reader.c 2000/01/18 07:15:14
***************
*** 225,246 ****
ForkDesc *desc;
if((desc = FindThread(i, -1)) != NULL) {
Connection *conn = desc->d_Data;
- int still_in_use = 0;
if(conn) {
! /*
! * If this client has an outstanding server request,
! * avoid killing it, because this conn is referenced
! * elsewhere.
! */
! if(conn->co_SReq != NULL)
! still_in_use = 1;
!
! if(!still_in_use)
! DeleteConnection(conn);
}
! if(!still_in_use)
! DelThread(desc);
}
}
}
--- 225,236 ----
ForkDesc *desc;
if((desc = FindThread(i, -1)) != NULL) {
Connection *conn = desc->d_Data;
if(conn) {
! NNTerminate(conn);
! DeleteConnection(conn);
}
! DelThread(desc);
}
}
}
Technical Details
Message-ID:
<slrn8885qd.3a8.kolya@SEVEN-UP.MIT.EDU>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-mailReferences:
<860s0o$rqa$1@mired.zark.thedonkeys.org>Show Full Headers
Complete Article Headers
Message-ID: <slrn8885qd.3a8.kolya@SEVEN-UP.MIT.EDU> Subject: Re: dreaderd problem Date: Tue, 18 Jan 2000 00:00:00 +0000 From: kolya@mit.edu (Nickolai Zeldovich) References: <860s0o$rqa$1@mired.zark.thedonkeys.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 X-Deja-AN: 574126676 X-Trace: dreaderd 948180813 22494 18.239.0.70 Organization: Massachvsetts Institvte of Technology User-Agent: slrn/0.9.5.7 (UNIX) Newsgroups: news.software.nntp