mirror of
https://github.com/openssl/openssl.git
synced 2025-04-06 20:20:50 +08:00
quic_multistream_test: Output info about connection close reason
In case the connection close error code is unexpected print out the reason to help with diagnostics. Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22474)
This commit is contained in:
parent
74efc5477c
commit
8c110311fd
@ -1640,8 +1640,10 @@ static int run_script_worker(struct helper *h, const struct script_op *script,
|
||||
|| !TEST_int_eq(expect_remote,
|
||||
(cc_info.flags
|
||||
& SSL_CONN_CLOSE_FLAG_LOCAL) == 0)
|
||||
|| !TEST_uint64_t_eq(error_code, cc_info.error_code))
|
||||
|| !TEST_uint64_t_eq(error_code, cc_info.error_code)) {
|
||||
TEST_info("Connection close reason: %s", cc_info.reason);
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user