Article View: news.software.nntp
Article #14633Re: very long time to open a conn.
From: Simon Ritchie
Date: Fri, 31 Jan 1997 00:00
Date: Fri, 31 Jan 1997 00:00
89 lines
4278 bytes
4278 bytes
Jeff Woods (jeff@delta.com) wrote:
: Yves Touchette wrote:
: >
: > If i do "telnet news 119" from my linux box the coonection stay in
: > SYN_SENT state for a minute or two... after that the connection is
: > open everything is pretty fast.
: >
: > Any idea what would cause the connection to be so slow at startup?
: > note: that this problem does note exist on other port...
:
: Make sure your INADDR reverse lookup is valid in your name server for
: the IP that you're telnetting FROM. Some systems will wait until the
: reverse DNS lookup times out before letting you in.
I have a similar problem to the one Jeff reports, and I don't
think that Yves' answer explains what I see.
In my case. I'm running inn 1.4 unoff on a SunOS machine, and
inn 1.5 running under Solaris. One machine is a slave of the
other.
Generally, both machines run fine, but several times a day
one of them will "freeze" in this way for ten seconds or longer.
If it goes on for too long, then any NNTP clients trying to
connect, time out, and the users think the server has crashed.
After a time, it just carries on, in fact, it still does things
while the link is frozen (see later).
Sometimes, but not always, both servers freeze up simultaneously,
so I think that the problem may be something to do with the news
coming in from feed sites. However, it's nothing so simple as
they freeze up whenever a feed site connects, and I don't think
it happens because big articles are coming across the link.
I wrote a script which repeatedly tries to connect to port 119
and tells me when it can't. I then did various experiments, but
so far I've just found lots of things that don't cause the
problem.
It is not nnrpd hanging up on start-up. I can tell this by
running ps on the news server. The nnrpd demon for that
connection is not started until the point where the link
unfreezes. It appears that innd is just not starting up the
demon for a while.
I've used strace to see what innd is doing during this period.
It's doing all sorts of things, such as reading news from the
feed sites and serving it to existing nnrpd sessions. It's
not completely hung up waiting for something. (A thread inside
it may be hung up, of course.)
I did notice that in a couple of cases, a child of innd
terminated just before the link unfroze. I conjecture that this
may be some sort of limit problem, such that innd has to wait
for some load factor to go down before it can start up another
nnrpd demon.
I can't see anything like a parameter that limits the number
of simultaneous nnrpd sessions. In any case, if that was
the problem, I would expect it to refuse connections, not hang
up.
There's a parameter in config/config.data called NNRP_LOADLIMIT
("Refuse newsreader connections if load is higher then this"),
but I see that this just causes nnrpd itself to terminate on
start up under certain load conditions. As I said earlier,
it's not gettings as far as starting up an nnrpd.
There's a rather obscure reference in part 2 of the FAQ
(section 2.14) to a patch for Solaris 2.4 which partly cures a
bug "socket select hangs in NON_BLOCKED mode", but not
completely. The comment says that the problem continues
to affect heavily loaded machines. However, I'm not running
that version of the OS and I would expect such bugs to be fixed
in 2.5. (Hope springs eternal.)
So Yves might be right that it's some sort of networking
problem, taking ages to set up the initial socket or something,
but in my case it only happens every few hours.
Does anybody know any more about this?
Cheers
Simon
Technical Details
Message-ID:
<5ct8n3$nja$1@newsserver.dircon.co.uk>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:
<32DDB193.42A2D47A@microtec.net> <32E11CF2.B6@delta.com>Show Full Headers
Complete Article Headers
Message-ID: <5ct8n3$nja$1@newsserver.dircon.co.uk> Subject: Re: very long time to open a conn. Date: Fri, 31 Jan 1997 00:00:00 +0000 From: simon@dircon.co.uk (Simon Ritchie) References: <32DDB193.42A2D47A@microtec.net> <32E11CF2.B6@delta.com> 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: 213481879 Organization: via Direct Connection News service Newsgroups: news.software.nntp