aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2020-03-23 19:19:44 +0300
committerRoman Arutyunyan <arut@nginx.com>2020-03-23 19:19:44 +0300
commitf4562d7ed904a0734cfe65d20921977aaf0ae088 (patch)
tree9c2eacfecaadf4428294831ccea2172856cbfc90 /src
parent3fa1dec9c71617d78322226b5c7e19faa6d35c1f (diff)
downloadnginx-f4562d7ed904a0734cfe65d20921977aaf0ae088.tar.gz
nginx-f4562d7ed904a0734cfe65d20921977aaf0ae088.zip
Avoid using QUIC connection after CONNECTION_CLOSE.
Diffstat (limited to 'src')
-rw-r--r--src/event/ngx_event_quic.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c
index 4afa86bb0..acc6e671a 100644
--- 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_buf_t *b)
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_t *c, ngx_quic_header_t *pkt)
}
if (do_close) {
- ngx_quic_close_connection(c);
- return NGX_OK;
+ return NGX_DONE;
}
if (ack_this == 0) {