net: tcp: Revert: Do not accept new data in retransmission mode

After the window_full function has been fixed by looking at the
send_data_total instead of the unacked_len. There is no risk
in sending data in transmission mode.

This reverts commit 0088aaefa0.

Signed-off-by: Sjors Hettinga <s.a.hettinga@gmail.com>
This commit is contained in:
Sjors Hettinga 2022-06-20 08:57:00 +02:00 committed by Carles Cufí
commit 17f94d3f96

View file

@ -2373,11 +2373,6 @@ int net_tcp_queue_data(struct net_context *context, struct net_pkt *pkt)
goto out;
}
if (conn->data_mode == TCP_DATA_MODE_RESEND) {
ret = -EAGAIN;
goto out;
}
len = net_pkt_get_len(pkt);
if (conn->send_data->buffer) {