Skip to content

Commit 426bfa6

Browse files
committed
Fix the cleanup ...
1 parent 2824e34 commit 426bfa6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

testssl.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17112,11 +17112,11 @@ run_renego() {
1711217112
# If we dont wait for the session to be established on slow server, we will try to re-negotiate
1711317113
# too early losing all the attempts before the session establishment as OpenSSL will not buffer them
1711417114
# (only the first will be till the establishement of the session).
17115-
(j=0; while [[ $(grep -ac '^SSL-Session:' $TMPFILE) -ne 1 ]] && [[ $j -lt 30 ]]; do sleep $ssl_reneg_wait; j=$((j++)); done; \
17115+
(j=0; while [[ $(grep -ac '^SSL-Session:' $TMPFILE) -ne 1 ]] && [[ $j -lt 30 ]]; do sleep $ssl_reneg_wait; ((j++)); done; \
1711617116
for ((i=0; i < ssl_reneg_attempts; i++ )); do sleep $ssl_reneg_wait; echo R; k=0; \
1711717117
while [[ $(grep -ac '^RENEGOTIATING' $ERRFILE) -ne $((i+3)) ]] && [[ -f $TEMPDIR/allowed_to_loop ]] \
1711817118
&& [[ $(tail -n1 $ERRFILE |grep -acE '^(RENEGOTIATING|depth|verify)') -eq 1 ]] && [[ $k -lt 120 ]]; \
17119-
do sleep $ssl_reneg_wait; k=$((k++)); done; \
17119+
do sleep $ssl_reneg_wait; ((k++)); done; \
1712017120
done) | \
1712117121
$OPENSSL s_client $(s_client_options "$proto $legacycmd $STARTTLS $BUGS -connect $NODEIP:$PORT $PROXY $SNI") >$TMPFILE 2>>$ERRFILE &
1712217122
pid=$!

0 commit comments

Comments
 (0)