Re: connect() returns EADDRINUSE during massive host->host conn rate
- From: Maxim Konovalov <maxim@xxxxxxxxxxx>
- Date: Tue, 25 Dec 2007 13:30:36 +0300 (MSK)
On Fri, 30 Nov 2007, 19:26+0900, Adrian Chadd wrote:
On 30/11/2007, Jan Srzednicki <w@xxxxxxxxx> wrote:Have you tried to turn net.inet.ip.portrange.randomized off?
Most of the relevant sockets (that is, between the two host
mentioned) are in the ESTABLISHED state (200-400 of those). Only
20-40 are in TIME_WAIT state (these tend to be from a more
ephemeric POP3 service). Most of the EADDRINUSE happen for the
IMAP4 service.
I'd probably start by patching the places in the tcp code
(src/sys/netinet/tcp_usrreq.c) which returns this error
(Its returned in other places but that seems to me to be the most
likely from your description.)
Insert some code to print out information about the current socket and
the "oinp" value returned from in_pcbconnect_setup() (if this is the
place where the error occured.)
Finding out more about the socket thats been created and what its
clashing with might help. I'd do it myself but I'm not sure how to
duplicate the issue.
--
Maxim Konovalov
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: connect() returns EADDRINUSE during massive host->host conn rate
- From: Jan Srzednicki
- Re: connect() returns EADDRINUSE during massive host->host conn rate
- Prev by Date: Re: connect() returns EADDRINUSE during massive host->host conn rate
- Next by Date: Maximum NIC interrupts
- Previous by thread: Re: bin/118987: ifconfig -l [address_family] does not work correct on RELENG-7
- Next by thread: Re: connect() returns EADDRINUSE during massive host->host conn rate
- Index(es):
Relevant Pages
|
|