tcp: tcp_disconnect() should clear window_clamp
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 30 Nov 2009 20:53:30 +0000 (12:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Nov 2009 20:53:30 +0000 (12:53 -0800)
commit1fdf475aa141a669af8db6ccc7015f0b725087de
tree7298a884935feb59352566ca6119856a0e322cb5
parent0cae200eec6330cd2c20b24279597be1da50dc93
tcp: tcp_disconnect() should clear window_clamp

NFS can reuse its TCP socket after calling tcp_disconnect().

We noticed window scaling was not negotiated in SYN packet of next
connection request.

Fix is to clear tp->window_clamp in tcp_disconnect().

Reported-by: Krzysztof Oledzki <ole@ans.pl>
Tested-by: Krzysztof Oledzki <ole@ans.pl>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c