Re: [PATCH] tcp: extend window to fit all restored unacked data in a send queue

2016-06-01 Thread Andrew Vagin
On Tue, May 31, 2016 at 08:02:36AM -0700, Andrey Vagin wrote: > Data from a send queue is sent only if there is enough space in a > window, so when we restore unacked data, we need to expand a window to > fit this data. > > Currently we don't do this and tcp_acceptable_seq() returns > tcp_wnd_end(

[PATCH] tcp: extend window to fit all restored unacked data in a send queue

2016-05-31 Thread Andrey Vagin
Data from a send queue is sent only if there is enough space in a window, so when we restore unacked data, we need to expand a window to fit this data. Currently we don't do this and tcp_acceptable_seq() returns tcp_wnd_end(tp) instead of tp->snd_nxt. The other side drops packets with this seq, be