lkml.org 
[lkml]   [1998]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: connect(2)/accept(2) oddity
Date
From
In article <199806270720.RAA05851@workaholix.atnf.csiro.au>,
Richard.Gooch@atnf.csiro.au writes:
<--snip-->
>
> This seems strange to me. It appears connect(2) is returning before
> the accept(2) completes. Am I missing something here, or is Linux
> behaving strangely?
>
> Regards,

These are normal semantics. What you do in an accept is picking up a
socket for which the kernel has tried to finish (and usually succeeded)
the three way handshake.

So accept just picks up a socket for which a connection has been done. What
you setup with the listen(2) parameter is how many of these the kernel can have
pending for you.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

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