Thread View: news.software.nntp
2 messages
2 total messages
Started by gmwils
Tue, 18 Jan 2000 00:00
dreaderd problem
Author: gmwils
Date: Tue, 18 Jan 2000 00:00
Date: Tue, 18 Jan 2000 00:00
26 lines
1665 bytes
1665 bytes
We are running dreaderd to handle readers, which is feed from our INN
server. The problem we are having is that on the reader box, connections
aren't being closed properly. This is making the load go nuts (even with no
active readers connected).
netstat --inet results in tens to hundreds (depending on the time it is left)
of connections that look like:
tcp 7 0 host:nntp connect_host:2345 CLOSE
which persist. Some of these are from one of our stats servers, which connects
every five minutes to it. There end up being many connections persisting from
this server as well.
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?
Geoff
--
a paranoid is just someone with all of the facts at his disposal
- william seaward burroughs 1914-1997
Geoff M. Wilson <gmwils@eisa.net.au> www.zark.thedonkeys.org/~gmwils
Re: dreaderd problem
Author: 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);
}
}
}
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