From owner-freebsd-stable@FreeBSD.ORG Wed Nov 28 18:39:44 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6C7FD16A417 for ; Wed, 28 Nov 2007 18:39:44 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 2370B13C442 for ; Wed, 28 Nov 2007 18:39:43 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IxRo1-0003pW-Uw for freebsd-stable@freebsd.org; Wed, 28 Nov 2007 18:38:41 +0000 Received: from 78-0-78-190.adsl.net.t-com.hr ([78.0.78.190]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Nov 2007 18:38:41 +0000 Received: from ivoras by 78-0-78-190.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Nov 2007 18:38:41 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Ivan Voras Date: Wed, 28 Nov 2007 19:36:29 +0100 Lines: 37 Message-ID: References: <20071127135320.GJ2045@oak.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig5D2E3E76C27452C9601637FA" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 78-0-78-190.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: <20071127135320.GJ2045@oak.pl> X-Enigmail-Version: 0.95.5 Sender: news Cc: freebsd-net@freebsd.org Subject: Re: connect() returns EADDRINUSE during massive host->host conn rate X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Nov 2007 18:39:44 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig5D2E3E76C27452C9601637FA Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Jan Srzednicki wrote: > Hello, >=20 > I have a pair of hosts. One of them performs a massive amount of > TCP connections to the other one, all to the same port. This setup > mostly works fine, but from time to time (that varies, from once a > minute to one a half an hour), the connect(2) syscall fails with=20 > EADDRINUSE. The connection rate tops to 50 connection > initiations/second. This looks like the old (and probably well known) problem "ab" has. ("ab" is "apache benchmark", a utility which is bundled with apache and which does repeated connections to the specified address, does transactions and computes some statistics). AFAIK this behaviour was present since at least 5.2, maybe earlier. No known fixes. --------------enig5D2E3E76C27452C9601637FA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHTbUtldnAQVacBcgRAtmnAJ4g5xNa0PcYavYH8reVeIqEG9HlpACg/FyX wpsRpl/p3OMi1UIbcH9uWQ4= =3Sqe -----END PGP SIGNATURE----- --------------enig5D2E3E76C27452C9601637FA--