From owner-freebsd-hackers Wed Dec 16 01:00:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA13065 for freebsd-hackers-outgoing; Wed, 16 Dec 1998 01:00:30 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mrelay.jrc.it (mrelay.jrc.it [139.191.1.65]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA13060 for ; Wed, 16 Dec 1998 01:00:29 -0800 (PST) (envelope-from dirk.vangulik@jrc.it) Received: from jrc.it (elpc51.jrc.it [139.191.71.51]) by mrelay.jrc.it (LMC5692) with ESMTP id KAA27425 for ; Wed, 16 Dec 1998 10:00:58 +0100 (MET) Message-ID: <3677760D.B7B7A4FA@jrc.it> Date: Wed, 16 Dec 1998 09:57:49 +0100 From: Dirk-Willem van Gulik Organization: ISIS/STA - Joint Research Center of the European Commission X-Mailer: Mozilla 4.5 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.ORG Subject: Re: EADDRINUSE rather than EADDRNOTAVAIL Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Larry Baird wrote: > In article <367664AE.D50A3A75@jrc.it> you wrote: > : I've got a small database transaction client/server pair. It is > : to accomplish serialisation of a db shared by a couple of web > : servers on a handfull of machines. The backend is DD; typical > : transaction speeds are in the 50/client/second; and 1500/server/second. > Look at http://www.ibrado.com/sock-faq/ for the answer to your question. Nice plug, for a very good FAQ. However the question I am seeking to get answered is is a bit more complex; or my brain is just not into gear to spot it. On a busy client; after opening and closing a couple of 100 tcp/ip sockets in the AF family to the server on another machine I am getting EADDRINUSE as it seems to run out of its local ports. 1. now why is this. Surely a couple of hundred open should not be an issue. 2. and why do I not get something lik EADDRNOTAVAIL ? I mean the kernel should make sure that the port is not in use when I ask for one. 3. and what can I tune to 'fix' this. Or would this be caused by me shooting myself in the foot by increasing the FD_SETSIZE (for more FDs) and BSIZE=256 to get past the 101-254 hole in delayed send. Thanks, Dw. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message