[Bug 217637] One TCP connection accepted TWO times

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Mar 20 21:40:29 UTC 2017


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

--- Comment #72 from Michael Tuexen <tuexen at freebsd.org> ---
(In reply to slw from comment #71)
I'm not arguing the semantic of the TCP level ACKs.

I'm saying that if a TCP stack knows that some user data can not be delivered
to its application, it should signal that to the peer.

This includes:
* receiving data after the socket was closed or shutdown(..., SHUT_RD) was
called.
* closing the socket or calling shutdown(..., SHUT_RD) with user data still in
the
  receive buffer.

I think:
* these four cases should be handled the same way.
* Resetting the TCP connection is what I would expect.

I can write some packetdrill test scripts to see what the current behaviour is
under FreeBSD (and Linux).

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


More information about the freebsd-net mailing list