Skip to content

Commit 7a6c652

Browse files
committed
only exec QUIC when SERVICE= HTTP
... and document wait_kill better
1 parent 35cb521 commit 7a6c652

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

testssl.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2221,6 +2221,12 @@ check_revocation_ocsp() {
22212221
fi
22222222
}
22232223

2224+
# waits maxsleep seconds (arg2) until process with arg1 (pid) will be killed
2225+
#
2226+
# return values
2227+
# 0: process terminated before be killed
2228+
# 3: was killed
2229+
#
22242230
wait_kill(){
22252231
local pid=$1 # pid we wait for or kill
22262232
local maxsleep=$2 # how long we wait before killing
@@ -6208,6 +6214,7 @@ sub_quic() {
62086214
local jsonID="QUIC"
62096215

62106216
[[ $DEBUG -ne 0 ]] && sclient_errfile=/dev/null
6217+
[[ "$SERVICE" != HTTP ]] && return 0
62116218

62126219
pr_bold " QUIC ";
62136220

0 commit comments

Comments
 (0)