From 025535ecd11bdebd8eb28ed4f0f6b509b1b54577 Mon Sep 17 00:00:00 2001 From: Hugo Landau Date: Mon, 4 Sep 2023 17:53:13 +0100 Subject: [PATCH] QUIC MULTISTREAM TEST: Add comment Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/21827) --- test/quic_multistream_test.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/quic_multistream_test.c b/test/quic_multistream_test.c index 1138e3e1e6..e8a145726c 100644 --- a/test/quic_multistream_test.c +++ b/test/quic_multistream_test.c @@ -557,6 +557,10 @@ static unsigned int server_helper_thread(void *arg) ossl_quic_tserver_tick(h->s_priv); ossl_crypto_mutex_unlock(h->server_thread.m); + /* + * Give the main thread an opportunity to get the mutex, which is + * sometimes necessary in some script operations. + */ OSSL_sleep(1); ossl_crypto_mutex_lock(h->server_thread.m); }