lkml.org 
[lkml]   [1999]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Possible 2.0.x connect() bug
Date
From
> I have some code which does the following:
>
> 1) create a TCP socket with socket()
> 2) attempts to connect with connect()
> 3) If the connect() failed with errno set to ECONNREFUSED, waits 2 seconds and
> tries again
>
> With the 2.0.5 and 2.0.10 kernels, the 2nd connect() call fails with errno set
> to EINVAL.

This is correct. POSIX 1003.1g draft 6.5 covers this. You should close the
socket


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.026 / U:1.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site