Messages in this thread | | | Subject | Re: Possible 2.0.x connect() bug | Date | Sat, 14 Aug 1999 00:10:05 +0100 (BST) | From | Alan Cox <> |
| |
> 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/
| |