Latest update - 9152

This commit is contained in:
2023-08-27 21:42:48 +09:00
parent 6610b969d9
commit 010239a218
6 changed files with 39 additions and 16 deletions
+11 -1
View File
@@ -283,6 +283,10 @@ ngx_quic_new_connection(ngx_connection_t *c, ngx_quic_conf_t *conf,
qc->path_validation.data = c;
qc->path_validation.handler = ngx_quic_path_handler;
qc->key_update.log = c->log;
qc->key_update.data = c;
qc->key_update.handler = ngx_quic_keys_update;
qc->conf = conf;
if (ngx_quic_init_transport_params(&qc->tp, conf) != NGX_OK) {
@@ -562,6 +566,10 @@ ngx_quic_close_connection(ngx_connection_t *c, ngx_int_t rc)
ngx_delete_posted_event(&qc->push);
}
if (qc->key_update.posted) {
ngx_delete_posted_event(&qc->key_update);
}
if (qc->close.timer_set) {
return;
}
@@ -1055,7 +1063,9 @@ ngx_quic_handle_payload(ngx_connection_t *c, ngx_quic_header_t *pkt)
return rc;
}
return ngx_quic_keys_update(c, qc->keys);
ngx_post_event(&qc->key_update, &ngx_posted_events);
return NGX_OK;
}