Eric Dumazet 4bdc3d6614 tcp/dccp: fix behavior of stale SYN_RECV request sockets
When a TCP/DCCP listener is closed, its pending SYN_RECV request sockets
become stale, meaning 3WHS can not complete.

But current behavior is wrong :
incoming packets finding such stale sockets are dropped.

We need instead to cleanup the request socket and perform another
lookup :
- Incoming ACK will give a RST answer,
- SYN rtx might find another listener if available.
- We expedite cleanup of request sockets and old listener socket.

Fixes: 079096f103fa ("tcp/dccp: install syn_recv requests into ehash table")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-10-13 18:26:34 -07:00
..
2015-10-13 04:55:08 -07:00
2015-08-25 13:37:31 -07:00
2015-05-28 11:23:20 +08:00
2015-10-13 04:55:08 -07:00
2015-10-08 04:27:03 -07:00
2015-05-03 21:58:01 -04:00
2015-09-17 17:18:37 -07:00
2015-10-13 04:55:08 -07:00
2015-10-13 04:55:08 -07:00
2015-02-28 16:56:51 -05:00
2014-05-23 16:28:53 -04:00
2015-10-08 04:27:03 -07:00