[Bug 217637] One TCP connection accepted TWO times

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Mar 17 07:03:11 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217637

--- Comment #22 from Michael Tuexen <tuexen at freebsd.org> ---
(In reply to Sepherosa Ziehau from comment #21)
> Hmm, do any OS's TCP stacks really send data along w/ the last ACK in the
> 3-way handshake at all?
Assume the the initial ACK without data being the third message of the
handshake is
lost and the client will send data, like an HTTP client. Then the server will
get
exactly such a packet. This will happen with most OSes, I guess.

> And if we are checking the syncookie, it indicates we suffered short-of-memory
> previously.  I don't think we need to record that situation.
This is not true. We use the syncookie if we don't find an entry in the
syncache.
The reason can be that we had an overflow, but it can also be that we don't
find
it because we already used the entry to setup a connection. This is the code
path
we use in the traces provided.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-net mailing list