mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
QUIC test fix
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20348)
This commit is contained in:
parent
9cf091a3c5
commit
54b86b7fa3
@ -65,13 +65,21 @@ static int test_quic_write_read(int idx)
|
||||
/* Check that sending and receiving app data is ok */
|
||||
if (!TEST_true(SSL_write_ex(clientquic, msg, msglen, &numbytes)))
|
||||
goto end;
|
||||
if (idx == 1 && !TEST_true(wait_until_sock_readable(ssock)))
|
||||
goto end;
|
||||
ossl_quic_tserver_tick(qtserv);
|
||||
if (!TEST_true(ossl_quic_tserver_read(qtserv, buf, sizeof(buf),
|
||||
&numbytes))
|
||||
|| !TEST_mem_eq(buf, numbytes, msg, msglen))
|
||||
goto end;
|
||||
if (idx == 1) {
|
||||
do {
|
||||
if (!TEST_true(wait_until_sock_readable(ssock)))
|
||||
goto end;
|
||||
|
||||
ossl_quic_tserver_tick(qtserv);
|
||||
|
||||
if (!TEST_true(ossl_quic_tserver_read(qtserv, buf, sizeof(buf),
|
||||
&numbytes)))
|
||||
goto end;
|
||||
} while (numbytes == 0);
|
||||
|
||||
if (!TEST_mem_eq(buf, numbytes, msg, msglen))
|
||||
goto end;
|
||||
}
|
||||
|
||||
if (!TEST_true(ossl_quic_tserver_write(qtserv, (unsigned char *)msg,
|
||||
msglen, &numbytes)))
|
||||
|
Loading…
Reference in New Issue
Block a user