TCP_NODELAY
Add tcp_nodelay option for proto tcp
--tcp-nodelay
This macro sets the TCP_NODELAY socket flag on the server as well as pushes it to
connecting clients. The TCP_NODELAY flag disables the Nagle algorithm on TCP
sockets causing packets to be transmitted immediately with low latency, rather
than waiting a short period of time in order to aggregate several packets into a
larger containing packet. In VPN applications over TCP, TCP_NODELAY is generally
a good latency optimization.
This commit is contained in:
parent
19a2e838a3
commit
0e7866cb71
1 changed files with 2 additions and 0 deletions
|
|
@ -689,6 +689,8 @@ WantedBy=multi-user.target" > /etc/systemd/system/iptables.service
|
||||||
echo "proto udp" >> /etc/openvpn/server.conf
|
echo "proto udp" >> /etc/openvpn/server.conf
|
||||||
elif [[ "$PROTOCOL" = '2' ]]; then
|
elif [[ "$PROTOCOL" = '2' ]]; then
|
||||||
echo "proto tcp" >> /etc/openvpn/server.conf
|
echo "proto tcp" >> /etc/openvpn/server.conf
|
||||||
|
echo "socket-flags TCP_NODELAY" >> /etc/openvpn/server.conf
|
||||||
|
echo "push "socket-flags TCP_NODELAY"" >> /etc/openvpn/server.conf
|
||||||
fi
|
fi
|
||||||
echo "dev tun
|
echo "dev tun
|
||||||
user nobody
|
user nobody
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue