ZijingWu
ZijingWu

Reputation: 3490

Is there any RFC document about the backlog behaviour of listening TCP socket?

Recently I'm looking into the RFC 793 to understand the TCP and the socket behaviour.

One question I have is: When an SYN received, should the listen socket immediately send the ACK or wait for APP layer call accept function.

Seams those behaviour is not explained in RFC 793, so does there any RFC explain the backlog/accept behaviour of an listening socket.

Upvotes: 2

Views: 172

Answers (1)

Steffen Ullrich
Steffen Ullrich

Reputation: 123521

One question I have is: When an SYN received, should the listen socket immediately send the ACK or wait for APP layer call accept function

Usually the OS kernel does the TCP handshake no matter if the application is currently calling accept. But it might be different with some user-space TCP/IP implementations where the full IP stack is done inside the application. I don't think any RFC is mandating a specific behavior here since this detail is not relevant for the protocol.

Upvotes: 1

Related Questions