Fix racy test.
With exchanges == renego period, sometimes the connection will be closed by the client before the server had time to read the ClientHello, making the test fail. The extra exchange avoids that.
This commit is contained in:
parent
a92ed4845c
commit
9835bc077a
1 changed files with 3 additions and 2 deletions
|
@ -1088,9 +1088,10 @@ run_test "Renegotiation: periodic, just below period" \
|
|||
-S "SSL - An unexpected message was received from our peer" \
|
||||
-S "failed"
|
||||
|
||||
# one extra exchange to be able to complete renego
|
||||
run_test "Renegotiation: periodic, just above period" \
|
||||
"$P_SRV debug_level=3 exchanges=9 renegotiation=1 renego_period=3" \
|
||||
"$P_CLI debug_level=3 exchanges=3 renegotiation=1" \
|
||||
"$P_CLI debug_level=3 exchanges=4 renegotiation=1" \
|
||||
0 \
|
||||
-c "client hello, adding renegotiation extension" \
|
||||
-s "received TLS_EMPTY_RENEGOTIATION_INFO" \
|
||||
|
@ -1106,7 +1107,7 @@ run_test "Renegotiation: periodic, just above period" \
|
|||
|
||||
run_test "Renegotiation: periodic, two times period" \
|
||||
"$P_SRV debug_level=3 exchanges=9 renegotiation=1 renego_period=3" \
|
||||
"$P_CLI debug_level=3 exchanges=6 renegotiation=1" \
|
||||
"$P_CLI debug_level=3 exchanges=7 renegotiation=1" \
|
||||
0 \
|
||||
-c "client hello, adding renegotiation extension" \
|
||||
-s "received TLS_EMPTY_RENEGOTIATION_INFO" \
|
||||
|
|
Loading…
Reference in a new issue