client: set IPTOS_LOWDELAY on TCP connection

this helps edge routers to prioritize our interactive network traffic.
This commit is contained in:
Björn Jacke 2021-02-18 11:58:52 +01:00 committed by Nicolas Viennot
parent cbec43f56d
commit f6a4ae6042

View File

@ -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