tcp: Make sure sending window is initialised before sending to tap
Seen with iperf3: the first packet from socket (data connection) is 65520 bytes and doesn't fit in the window. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
e0530a802f
commit
2c009e8e6f
1 changed files with 1 additions and 1 deletions
2
tcp.c
2
tcp.c
|
@ -1752,7 +1752,7 @@ recvmmsg:
|
||||||
iov_tap[send_bufs - 1].iov_len = mss_tap - conn->mss_guest + last_len;
|
iov_tap[send_bufs - 1].iov_len = mss_tap - conn->mss_guest + last_len;
|
||||||
|
|
||||||
/* Likely, some new data was acked too. */
|
/* Likely, some new data was acked too. */
|
||||||
if (conn->seq_from_tap != conn->seq_ack_to_tap) {
|
if (conn->seq_from_tap != conn->seq_ack_to_tap || !conn->tcpi_snd_wnd) {
|
||||||
if (conn->no_snd_wnd) {
|
if (conn->no_snd_wnd) {
|
||||||
conn->seq_ack_to_tap = conn->seq_from_tap;
|
conn->seq_ack_to_tap = conn->seq_from_tap;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue