QUIC MULTISTREAM TEST: Add comment

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21827)
This commit is contained in:
Hugo Landau 2023-09-04 17:53:13 +01:00
parent 769c9b1a99
commit 025535ecd1
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}