summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Jacke <bjacke@samba.org>2021-02-18 11:58:52 +0100
committerNicolas Viennot <nicolas@viennot.biz>2021-02-20 17:12:25 -0500
commitf6a4ae6042f4bb2b6db8eda23df31d8b788a7978 (patch)
treebdb41e3aa8d39802521deffcd6d0f97270c93fe1
parentcbec43f56dfb48c2fb6e00faa2cb85443d4b7d8f (diff)
client: set IPTOS_LOWDELAY on TCP connection
this helps edge routers to prioritize our interactive network traffic.
-rw-r--r--tmate-ssh-client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tmate-ssh-client.c b/tmate-ssh-client.c
index 995c92a7..ce8d5a5a 100644
--- a/tmate-ssh-client.c
+++ b/tmate-ssh-client.c
@@ -183,6 +183,7 @@ static void tune_socket_opts(int fd)
} \
})
+ SSO(IPPROTO_IP, IP_TOS, 0x10); /* IPTOS_LOWDELAY */
SSO(IPPROTO_TCP, TCP_NODELAY, 1);
SSO(SOL_SOCKET, SO_KEEPALIVE, 1);
#ifdef TCP_KEEPALIVE