Repository navigation
Handle OpenSSL 4 handshake buffer exhaustion - #13761
Conversation
TLS handshakes stall with OpenSSL 4 because an empty memory BIO no longer reports EOF when its empty-read behavior requests a retry. ATS therefore retains the exhausted handshake buffer and never resumes reading the client connection. This patch checks the pending byte count to detect exhausted handshake buffers and resume socket reads. This check also works with earlier OpenSSL releases and removes the unused BoringSSL EOF fallback. Co-authored-by: Codex GPT-6.1 Sol High
|
I wanted to check whether this is working around an OpenSSL bug, since there are a lot of The change is OpenSSL commit For compatibility, reviewers asked for an internal flag,
The flag doesn't help ATS, because we opt out of it. We create the handshake rbio with So checking |
TLS handshakes stall with OpenSSL 4 because an empty memory BIO no longer reports EOF when its empty-read behavior requests a retry. ATS therefore retains the exhausted handshake buffer and never resumes reading the client connection. This patch checks the pending byte count to detect exhausted handshake buffers and resume socket reads. This check also works with earlier OpenSSL releases and removes the unused BoringSSL EOF fallback. Co-authored-by: Codex GPT-6.1 Sol High (cherry picked from commit fe7cfc9)
|
Cherry-picked to the 10.2.x branch as 2776c4a for the 10.2.1 release. |
* trafficserver-9: transition to newer toolchain version streams. Transitioning the following toolchains: - openssl: 3.6 -> 4.0 * fix(trafficserver-9): port to OpenSSL 4.0 ABI (ENG-5408, INC-377) OpenSSL 4.0 makes ASN1_STRING opaque, returns const X509_NAME pointers and removes the ENGINE API, so 9.2.15 does not build. An empty memory BIO that retries reads also no longer reports EOF, so server-side TLS handshakes stall. Backport apache/trafficserver#13476 and apache/trafficserver#13761, compile out the ENGINE code (the 9.2 equivalent of apache/trafficserver#13471), and add TLS package tests. The certifier mkcsr() change and the ENGINE guard are Chainguard-written: upstream 9.2.x has no OpenSSL 4 support. --------- Co-authored-by: tvs-rec <[email protected]> Co-authored-by: Maxime Gréau <[email protected]> Export: 9bc059c007d8ac2fd57517ff36247f5815d9fe83
TLS handshakes stall with OpenSSL 4 because an empty memory BIO no
longer reports EOF when its empty-read behavior requests a retry. ATS
therefore retains the exhausted handshake buffer and never resumes
reading the client connection.
This patch checks the pending byte count to detect exhausted handshake
buffers and resume socket reads. This check also works with earlier
OpenSSL releases and removes the unused BoringSSL EOF fallback.
Co-authored-by: Codex GPT-6.1 Sol High