From: Denys Fedoryshchenko <denys@visp.net.lb>
To: <netdev@vger.kernel.org>
Subject: orphan sockets
Date: Fri, 08 Jul 2011 18:13:14 +0300 [thread overview]
Message-ID: <6fa7e62e85e1e2fd069aa9cbf307737a@visp.net.lb> (raw)
Hi
Just after digging orphan sockets problem, that was causing "Address
already in use" for bind(),i found that in documentation is mentioned:
tcp_orphan_retries - INTEGER
This value influences the timeout of a locally closed TCP
connection,
when RTO retransmissions remain unacknowledged.
See tcp_retries2 for more details.
The default value is 7.
If your machine is a loaded WEB server,
you should think about lowering this value, such sockets
may consume significant resources. Cf. tcp_max_orphans.
But all servers i have, i notice that tcp_orphan_retries = 0 by
default, i check in code, and found that:
if (retries == 0 && alive)
retries = 8;
is a bit confusing, that tcp_orphan_retries = 0, is in fact = 8, or to
be more exact is 8 if socket has rto < RTO_MAX. But nothing like 7
mentioned in documentation, i guess it is wrong?. My english too bad to
edit that, but maybe someone will take a look :-)
---
System administrator
Denys Fedoryshchenko
Virtual ISP S.A.L.
next reply other threads:[~2011-07-08 15:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-08 15:13 Denys Fedoryshchenko [this message]
2011-07-08 16:28 ` orphan sockets Daniel Baluta
2011-07-08 16:31 ` David Miller
2011-07-08 16:33 ` Daniel Baluta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6fa7e62e85e1e2fd069aa9cbf307737a@visp.net.lb \
--to=denys@visp.net.lb \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox