Garrett Wollman wrote:

> <<On Fri, 19 Jan 2001 10:19:15 +0000, Ben Smithurst <[EMAIL PROTECTED]> 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.

Fix the damn code then, I'm just a docs committer (in theory).  And the code
certainly does seem to do this, check in_pcb.c:


        if (first > last) {
                /*
                 * counting down
                 */
                count = first - last;

                do {
                        if (count-- < 0) {      /* completely used? */
                                /*
                                 * Undo any address bind that may have
                                 * occurred above.
                                 */
                                inp->inp_laddr.s_addr = INADDR_ANY;
                                return (EAGAIN);
                        }

                        ...

What *should* it return?

-- 
Ben Smithurst / [EMAIL PROTECTED] / [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to