lkml.org 
[lkml]   [1999]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectPossible 2.0.x connect() bug
Date
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.

I have hacked the code to close the socket and open a new one before retrying,
and that works.

What I would like to know is, is this bug or a feature?

-
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.061 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site