]> git.feebdaed.xyz Git - 0xmirror/nginx.git/commit
QUIC: adjusted handling of callback errors.
authorSergey Kandaurov <pluknet@nginx.com>
Tue, 13 May 2025 16:12:10 +0000 (20:12 +0400)
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>
Fri, 23 May 2025 11:00:47 +0000 (15:00 +0400)
commit7468a10b62276be4adee0fcd6aaf6244270984ab
tree699777215ae4032b39c6d353e6d6ebef12d3304b
parent47f96993f669543c6cb4979dd3f680ad01314ee5
QUIC: adjusted handling of callback errors.

Changed handshake callbacks to always return success.  This allows to avoid
logging SSL_do_handshake() errors with empty or cryptic "internal error"
OpenSSL error messages at the inappropriate "crit" log level.

Further, connections with failed callbacks are closed now right away when
using OpenSSL compat layer.  This change supersedes and reverts c37fdcdd1,
with the conditions to check callbacks invocation kept to slightly improve
code readability of control flow; they are optimized out in the resulting
assembly code.
src/event/quic/ngx_event_quic.c
src/event/quic/ngx_event_quic_openssl_compat.c
src/event/quic/ngx_event_quic_ssl.c