Mercurial > hg > nginx
comparison src/event/quic/ngx_event_quic.c @ 9056:be39ffdf9208 quic
QUIC: removed cancelable flag from QUIC and HTTP/3 events.
All these events are created in context of a client connection and are deleted
when the connection is closed. Setting ev->cancelable could trigger premature
connection closure and a socket leak alert.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Wed, 30 Nov 2022 14:09:08 +0400 |
parents | 1192923be0aa |
children | 9553eea74f2a |
comparison
equal
deleted
inserted
replaced
9055:1192923be0aa | 9056:be39ffdf9208 |
---|---|
273 */ | 273 */ |
274 | 274 |
275 qc->pto.log = c->log; | 275 qc->pto.log = c->log; |
276 qc->pto.data = c; | 276 qc->pto.data = c; |
277 qc->pto.handler = ngx_quic_pto_handler; | 277 qc->pto.handler = ngx_quic_pto_handler; |
278 qc->pto.cancelable = 1; | |
279 | 278 |
280 qc->push.log = c->log; | 279 qc->push.log = c->log; |
281 qc->push.data = c; | 280 qc->push.data = c; |
282 qc->push.handler = ngx_quic_push_handler; | 281 qc->push.handler = ngx_quic_push_handler; |
283 qc->push.cancelable = 1; | |
284 | 282 |
285 qc->close.log = c->log; | 283 qc->close.log = c->log; |
286 qc->close.data = c; | 284 qc->close.data = c; |
287 qc->close.handler = ngx_quic_close_handler; | 285 qc->close.handler = ngx_quic_close_handler; |
288 qc->close.cancelable = 1; | |
289 | 286 |
290 qc->path_validation.log = c->log; | 287 qc->path_validation.log = c->log; |
291 qc->path_validation.data = c; | 288 qc->path_validation.data = c; |
292 qc->path_validation.handler = ngx_quic_path_validation_handler; | 289 qc->path_validation.handler = ngx_quic_path_validation_handler; |
293 qc->path_validation.cancelable = 1; | |
294 | 290 |
295 qc->conf = conf; | 291 qc->conf = conf; |
296 | 292 |
297 if (ngx_quic_init_transport_params(&qc->tp, conf) != NGX_OK) { | 293 if (ngx_quic_init_transport_params(&qc->tp, conf) != NGX_OK) { |
298 return NULL; | 294 return NULL; |