changeset 8442:b9bce2c4fe33 quic

Close QUIC connection with NO_ERROR on c->close. That way it makes more sense. Previously it was closed with INTERNAL_ERROR.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 23 Jun 2020 11:57:00 +0300
parents db8fe75c9c7a
children 3b5fbf1bcdee
files src/event/ngx_event_quic.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/event/ngx_event_quic.c
+++ b/src/event/ngx_event_quic.c
@@ -1182,7 +1182,8 @@ ngx_quic_input_handler(ngx_event_t *rev)
     }
 
     if (c->close) {
-        ngx_quic_close_connection(c, NGX_ERROR);
+        qc->error_reason = "graceful shutdown";
+        ngx_quic_close_connection(c, NGX_OK);
         return;
     }