Skip to content
Commit ec3c0982 authored by Patrick McManus's avatar Patrick McManus Committed by David S. Miller
Browse files

[TCP]: TCP_DEFER_ACCEPT updates - process as established



Change TCP_DEFER_ACCEPT implementation so that it transitions a
connection to ESTABLISHED after handshake is complete instead of
leaving it in SYN-RECV until some data arrvies. Place connection in
accept queue when first data packet arrives from slow path.

Benefits:
  - established connection is now reset if it never makes it
   to the accept queue

 - diagnostic state of established matches with the packet traces
   showing completed handshake

 - TCP_DEFER_ACCEPT timeouts are expressed in seconds and can now be
   enforced with reasonable accuracy instead of rounding up to next
   exponential back-off of syn-ack retry.

Signed-off-by: default avatarPatrick McManus <mcmanus@ducksong.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e4c78840
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment