From owner-freebsd-net Fri Jan 19 8:25:29 2001 Delivered-To: freebsd-net@freebsd.org Received: from homer.softweyr.com (bsdconspiracy.net [208.187.122.220]) by hub.freebsd.org (Postfix) with ESMTP id D790037B404 for ; Fri, 19 Jan 2001 08:25:11 -0800 (PST) Received: from [127.0.0.1] (helo=softweyr.com ident=Fools trust ident!) by homer.softweyr.com with esmtp (Exim 3.16 #1) id 14JeSU-0000BT-00; Fri, 19 Jan 2001 09:32:14 -0700 Message-ID: <3A686C0E.D48EC7E9@softweyr.com> Date: Fri, 19 Jan 2001 09:32:14 -0700 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Garrett Wollman Cc: Ben Smithurst , freebsd-net@FreeBSD.ORG Subject: Re: manual page review: connect(2) EAGAIN error References: <20010118113453.A25127@comp.leeds.ac.uk> <200101181543.KAA29005@khavrinen.lcs.mit.edu> <20010119101915.B16961@comp.leeds.ac.uk> <200101191557.KAA10198@khavrinen.lcs.mit.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Garrett Wollman wrote: > > < said: > > > +.It Bq Er EAGAIN > > +A resource was temporarily unavailable when connecting a socket in > > +non-blocking mode. > > +This could indicate there are no port numbers available for use when a port > > +number is being chosen automatically. > > +Increasing the > > +.Va net.inet.ip.portrange.last > > +.Xr sysctl 8 > > +variable (which defaults to 5000) may help this problem. > > > Any better? > > No -- if the code actually implements that, it's wrong. If the code implements what? Returning EAGAIN when no ephemeral ports are available? That is all the above really says, and then provides a hint as to how to fix it. The description is a little simplistic, as it misses the lowfirst-lowlast and highfirst-highlast ranges. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message