Messages in this thread | | | Subject | Re: connect(2)/accept(2) oddity | Date | 27 Jun 1998 19:37:34 GMT | From | (Ton Hospel) |
| |
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
| |