[openssl/openssl] 2b8d81: When calling ossl_crypto_condvar_wait_timeout() we...

Matt Caswell noreply at github.com
Tue Oct 10 07:27:28 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 2b8d81534479b161dda063477272363fb2caef08
      https://github.com/openssl/openssl/commit/2b8d81534479b161dda063477272363fb2caef08
  Author: Matt Caswell <matt at openssl.org>
  Date:   2023-10-10 (Tue, 10 Oct 2023)

  Changed paths:
    M include/internal/quic_thread_assist.h
    M ssl/quic/quic_impl.c
    M ssl/quic/quic_thread_assist.c

  Log Message:
  -----------
  When calling ossl_crypto_condvar_wait_timeout() we must use real time

Although many of the QUIC tests use fake time, the time we pass to the
ossl_crypto_condvar_wait_timeout() must be a real time.

Passing fake time was causing the QUIC tserver test to hang because
ossl_crypto_convar_wait_timeout() always timed out immediately and never
relinquished the CPU.

If using fake time we adjust the time to real time just before using it.

Fixes #22020

Reviewed-by: Hugo Landau <hlandau at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Richard Levitte <levitte at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22301)




More information about the openssl-commits mailing list