Mercurial > hg > nginx
changeset 8267:a8349cc72c64 quic
Avoid using QUIC connection after CONNECTION_CLOSE.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Mon, 23 Mar 2020 19:19:44 +0300 |
parents | f92e583fc256 |
children | 159eb325ec82 |
files | src/event/ngx_event_quic.c |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/event/ngx_event_quic.c +++ b/src/event/ngx_event_quic.c @@ -644,8 +644,8 @@ ngx_quic_input(ngx_connection_t *c, ngx_ rc = ngx_quic_app_input(c, &pkt); } - if (rc == NGX_ERROR) { - return NGX_ERROR; + if (rc != NGX_OK) { + return rc; } /* b->pos is at header end, adjust by actual packet length */ @@ -914,8 +914,7 @@ ngx_quic_payload_handler(ngx_connection_ } if (do_close) { - ngx_quic_close_connection(c); - return NGX_OK; + return NGX_DONE; } if (ack_this == 0) {