Back off on generating noise in the event of a PING frame
authorMatt Caswell <matt@openssl.org>
Mon, 2 Oct 2023 10:47:08 +0000 (11:47 +0100)
committerPauli <pauli@openssl.org>
Tue, 3 Oct 2023 23:51:51 +0000 (10:51 +1100)
commit21d2041da02c67218c94cef6792d8b84d810710b
treeda48c7bf7721b1dc2968c0d53e9b0c6e2f8dfa7d
parent3f8b7b98759553336dbdfc29f9cc4118046afede
Back off on generating noise in the event of a PING frame

If either endpoint issues a PING frame while we are introducing noise
into the communication then there is a danger that the connection itself
will fail. We detect the PING and then back off on generating noise for a
short while. It should be sufficient to just ensure that the next datagram
does not get dropped for each endpoint.

Fixes #22199

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22243)
test/helpers/noisydgrambio.c
test/helpers/quictestlib.c
test/helpers/quictestlib.h
test/quicapitest.c