gvisor/pkg/tcpip/transport/tcp
Bhasker Hariharan 3933dd5c04 Fixes to listen backlog handling.
Changes netstack to confirm to current linux behaviour where if the backlog is
full then we drop the SYN and do not send a SYN-ACK. Similarly we allow upto
backlog connections to be in SYN-RCVD state as long as the backlog is not full.

We also now drop a SYN if syn cookies are in use and the backlog for the
listening endpoint is full.

Added new tests to confirm the behaviour.

Also reverted the change to increase the backlog in TcpPortReuseMultiThread
syscall test.

Fixes #236

PiperOrigin-RevId: 252500462
2019-06-10 15:40:44 -07:00
..
testing/context Track and export socket state. 2019-06-06 15:04:47 -07:00
BUILD Disable certain tests that are flaky under race detector. 2019-05-31 16:19:49 -07:00
accept.go Fixes to listen backlog handling. 2019-06-10 15:40:44 -07:00
connect.go Fixes to listen backlog handling. 2019-06-10 15:40:44 -07:00
cubic.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
dual_stack_test.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
endpoint.go Track and export socket state. 2019-06-06 15:04:47 -07:00
endpoint_state.go Track and export socket state. 2019-06-06 15:04:47 -07:00
forwarder.go Fixes to TCP listen behavior. 2019-05-30 12:08:41 -07:00
protocol.go Change segment queue limit to be of fixed size. 2019-05-31 16:17:33 -07:00
rcv.go Track and export socket state. 2019-06-06 15:04:47 -07:00
reno.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
sack.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
sack_scoreboard.go Implement support for SACK based recovery(RFC 6675). 2019-05-03 10:51:18 -07:00
sack_scoreboard_test.go Implement support for SACK based recovery(RFC 6675). 2019-05-03 10:51:18 -07:00
segment.go Implement support for SACK based recovery(RFC 6675). 2019-05-03 10:51:18 -07:00
segment_heap.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
segment_queue.go Change segment queue limit to be of fixed size. 2019-05-31 16:17:33 -07:00
segment_state.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
snd.go Track and export socket state. 2019-06-06 15:04:47 -07:00
snd_state.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
tcp_noracedetector_test.go Disable certain tests that are flaky under race detector. 2019-05-31 16:19:49 -07:00
tcp_sack_test.go Implement support for SACK based recovery(RFC 6675). 2019-05-03 10:51:18 -07:00
tcp_test.go Fixes to listen backlog handling. 2019-06-10 15:40:44 -07:00
tcp_timestamp_test.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
timer.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00