diff options
| author | 2026-08-06 09:16:36 +0200 | |
|---|---|---|
| committer | 2026-10-09 16:36:15 +0200 | |
| commit | 5a5c645415c216f381cdab654bc012546f0d07ff (patch) | |
| tree | bc255130a5fbae3dd44bdfdd08ac426fa355ce3f /scripts/Makefile.thinlto | |
| parent | ovpn: remove redundant peer NULL checks in crypto post functions (diff) | |
selftests: ovpn: enable TCP_NODELAY on TCP sockets
Since openvpn 2.7.6, userspace unconditionally sets TCP_NODELAY on its
TCP sockets. Do the same in ovpn-cli by default, so that the TCP
selftests match that configuration.
Peers running 2.7.0 to 2.7.5 still leave Nagle enabled, and
mixed-version deployments will keep doing so for a while, so the option
can be turned off with OVPN_TCP_NODELAY=0. test-tcp-nagle.sh uses it to
keep running the TCP suite in that configuration.
The TCP peer ID capture assumes that every TCP segment starts with an
ovpn length prefix followed by a data header. TCP does not preserve
record boundaries, and enabling TCP_NODELAY makes this check unreliable.
Restrict the capture-based peer ID check to UDP.
Suggested-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Marco Baffo <marco@mandelbit.com>
Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
