]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
QUIC MULTISTREAM TEST: Add comment
authorHugo Landau <hlandau@openssl.org>
Mon, 4 Sep 2023 16:53:13 +0000 (17:53 +0100)
committerHugo Landau <hlandau@openssl.org>
Wed, 6 Sep 2023 09:32:14 +0000 (10:32 +0100)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21827)

test/quic_multistream_test.c

index 1138e3e1e60250e16a2be61b465f9585ce58d475..e8a145726cd98aae1129bbc5d5326a87ed91577c 100644 (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);
     }