aboutgitcodebugslistschat
path: root/tcp.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-10-05 19:48:55 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-10-05 20:02:03 +0200
commiteda446ba54417396ee0379fa597af302a359452b (patch)
treead8a7b5d78590373f6ad89338d79057ab4c5b8e5 /tcp.c
parenta4826ee04b762fded02e5a1551f12f50a1748ac7 (diff)
downloadpasst-eda446ba54417396ee0379fa597af302a359452b.tar
passt-eda446ba54417396ee0379fa597af302a359452b.tar.gz
passt-eda446ba54417396ee0379fa597af302a359452b.tar.bz2
passt-eda446ba54417396ee0379fa597af302a359452b.tar.lz
passt-eda446ba54417396ee0379fa597af302a359452b.tar.xz
passt-eda446ba54417396ee0379fa597af302a359452b.tar.zst
passt-eda446ba54417396ee0379fa597af302a359452b.zip
tcp: Always probe SO_SNDBUF, second attempt
I fell for this already: the sending buffer might shrink later! Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp.c')
-rw-r--r--tcp.c3
1 files changed, 0 insertions, 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;