Close QUIC connection with NO_ERROR on c->close.

That way it makes more sense.  Previously it was closed with INTERNAL_ERROR.
This commit is contained in:
Sergey Kandaurov 2020-06-23 11:57:00 +03:00
parent 9d46500914
commit 1cfd67c44a

View File

@ -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;
}