X-Git-Url: https://git.exim.org/users/heiko/exim.git/blobdiff_plain/38da9088282b3a74ddcbfe8d60382b55a7e9f426..c895de68398ece932fb371f527e24ce233f6ac7b:/test/scripts/1990-TCP-Fast-Open/1990 diff --git a/test/scripts/1990-TCP-Fast-Open/1990 b/test/scripts/1990-TCP-Fast-Open/1990 index 953098f31..1fc4682aa 100644 --- a/test/scripts/1990-TCP-Fast-Open/1990 +++ b/test/scripts/1990-TCP-Fast-Open/1990 @@ -32,7 +32,7 @@ system ("tc qdisc add dev lo root netem delay 50ms"); # option on the SYN. # sudo perl -system ("echo 0 > /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec"); +system ("[ -e /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec ] && echo 0 > /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec"); **** # # First time runs will see a TFO request option only; subsequent @@ -75,7 +75,7 @@ sleep 3 # sudo perl system ("tc qdisc delete dev lo root"); -system ("echo 3600 > /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec"); +system ("[ -e /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec ] && echo 3600 > /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec"); **** # killdaemon