summaryrefslogtreecommitdiffhomepage
path: root/src/event/quic/ngx_event_quic_ssl.c
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2023-08-25 13:51:38 +0400
committerSergey Kandaurov <pluknet@nginx.com>2023-08-25 13:51:38 +0400
commit24f3cb795e2d822be39387d828ac2ddc28f775fb (patch)
treeb887af0b576f764fb8980e530e28c9850560557d /src/event/quic/ngx_event_quic_ssl.c
parentf42519ff54c0ffecc2751f7957a5c3c9f1c53dfb (diff)
downloadnginx-24f3cb795e2d822be39387d828ac2ddc28f775fb.tar.gz
nginx-24f3cb795e2d822be39387d828ac2ddc28f775fb.tar.bz2
QUIC: posted generating TLS Key Update next keys.
Since at least f9fbeb4ee0de and certainly after 924882f42dea, which TLS Key Update support predates, queued data output is deferred to a posted push handler. To address timing signals after these changes, generating next keys is now posted to run after the push handler.
Diffstat (limited to 'src/event/quic/ngx_event_quic_ssl.c')
-rw-r--r--src/event/quic/ngx_event_quic_ssl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/event/quic/ngx_event_quic_ssl.c b/src/event/quic/ngx_event_quic_ssl.c
index e0862e296..316d6b5eb 100644
--- a/src/event/quic/ngx_event_quic_ssl.c
+++ b/src/event/quic/ngx_event_quic_ssl.c
@@ -482,9 +482,7 @@ ngx_quic_crypto_input(ngx_connection_t *c, ngx_chain_t *data)
* Generating next keys before a key update is received.
*/
- if (ngx_quic_keys_update(c, qc->keys) != NGX_OK) {
- return NGX_ERROR;
- }
+ ngx_post_event(&qc->key_update, &ngx_posted_events);
/*
* RFC 9001, 4.9.2. Discarding Handshake Keys