From eda446ba54417396ee0379fa597af302a359452b Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Tue, 5 Oct 2021 19:48:55 +0200 Subject: [PATCH] tcp: Always probe SO_SNDBUF, second attempt I fell for this already: the sending buffer might shrink later! Signed-off-by: Stefano Brivio --- tcp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/tcp.c b/tcp.c index 061b258..fba118b 100644 --- a/tcp.c +++ b/tcp.c @@ -1556,9 +1556,6 @@ static int tcp_send_to_tap(struct ctx *c, struct tcp_tap_conn *conn, int flags, !flags && conn->wnd_to_tap) return 0; - if (conn->snd_buf < SNDBUF_SMALL) - tcp_get_sndbuf(conn); - if (getsockopt(s, SOL_TCP, TCP_INFO, &info, &sl)) { tcp_rst(c, conn); return -ECONNRESET;