mirror of
https://passt.top/passt
synced 2025-02-22 02:42:22 +00:00
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
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;
|
||||
|
||||
/* 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) {
|
||||
conn->seq_ack_to_tap = conn->seq_from_tap;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user