aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorAntonio Quartulli <antonio@openvpn.net>2026-09-30 15:54:11 +0200
committerAntonio Quartulli <antonio@openvpn.net>2026-10-09 16:36:15 +0200
commit03b7050e67e2d5335cfcec428934d9728d968764 (patch)
tree5e670a4153de76c4c00b42cc466cf3261bafc837 /scripts/Makefile.thinlto
parentselftests: ovpn: enable TCP_NODELAY on TCP sockets (diff)
selftests: ovpn: wait for the TCP server key setup before traffic
In TCP mode ovpn_add_peer() starts the server side from a background subshell that first listens for the incoming connections and then installs the data key of every peer. The subshell PID is discarded, so nothing synchronizes the test against the key installation. The sleep 5 that follows does not cover it: it elapses while "listen" is still waiting for connections, and the peers only connect in the subsequent ovpn_add_peer() iterations, so the key loop starts well after that sleep has expired. Until now the test happened to work because of the unrelated delays that ran in between. Record the PID of the background subshell and wait for it once all the peers have been registered, which is the earliest point at which "listen" can have returned. A peer that was not given a key yet would otherwise drop the server-to-client packets and make the first ping fail. Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions