tab/space corrections and "grep -ac" in place of "grep -a | wc -l"
This commit is contained in:
parent
2c84a525cc
commit
d30d8e09f2
|
@ -17077,7 +17077,7 @@ run_renego() {
|
||||||
$OPENSSL s_client $(s_client_options "$proto $legacycmd $STARTTLS $BUGS -connect $NODEIP:$PORT $PROXY $SNI") >$TMPFILE 2>>$ERRFILE
|
$OPENSSL s_client $(s_client_options "$proto $legacycmd $STARTTLS $BUGS -connect $NODEIP:$PORT $PROXY $SNI") >$TMPFILE 2>>$ERRFILE
|
||||||
tmp_result=$?
|
tmp_result=$?
|
||||||
# If we are here, we have done two successful renegotiation (-2) and do the loop
|
# If we are here, we have done two successful renegotiation (-2) and do the loop
|
||||||
loop_reneg=$(($(grep -a '^RENEGOTIATING' $ERRFILE | wc -l)-2))
|
loop_reneg=$(($(grep -ac '^RENEGOTIATING' $ERRFILE )-2))
|
||||||
# If we got less than 2/3 successful attempts during the loop with 1s pause, we are in presence of exponential backoff.
|
# If we got less than 2/3 successful attempts during the loop with 1s pause, we are in presence of exponential backoff.
|
||||||
if [[ $loop_reneg -le $(($ssl_reneg_attempts*2/3)) ]]; then
|
if [[ $loop_reneg -le $(($ssl_reneg_attempts*2/3)) ]]; then
|
||||||
tmp_result=2
|
tmp_result=2
|
||||||
|
|
Loading…
Reference in New Issue