mirror of
https://github.com/tmate-io/tmate.git
synced 2024-12-01 20:43:11 +01:00
client: set IPTOS_LOWDELAY on TCP connection
this helps edge routers to prioritize our interactive network traffic.
This commit is contained in:
parent
cbec43f56d
commit
f6a4ae6042
@ -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(IPPROTO_TCP, TCP_NODELAY, 1);
|
||||||
SSO(SOL_SOCKET, SO_KEEPALIVE, 1);
|
SSO(SOL_SOCKET, SO_KEEPALIVE, 1);
|
||||||
#ifdef TCP_KEEPALIVE
|
#ifdef TCP_KEEPALIVE
|
||||||
|
Loading…
Reference in New Issue
Block a user