Mercurial > hg > nginx-quic
comparison src/event/ngx_event_quic.c @ 7937: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 | cef417a24755 |
children | 3b5fbf1bcdee |
comparison
equal
deleted
inserted
replaced
7936:db8fe75c9c7a | 7937:b9bce2c4fe33 |
---|---|
1180 ngx_quic_close_connection(c, NGX_DONE); | 1180 ngx_quic_close_connection(c, NGX_DONE); |
1181 return; | 1181 return; |
1182 } | 1182 } |
1183 | 1183 |
1184 if (c->close) { | 1184 if (c->close) { |
1185 ngx_quic_close_connection(c, NGX_ERROR); | 1185 qc->error_reason = "graceful shutdown"; |
1186 ngx_quic_close_connection(c, NGX_OK); | |
1186 return; | 1187 return; |
1187 } | 1188 } |
1188 | 1189 |
1189 n = c->recv(c, b.start, b.end - b.start); | 1190 n = c->recv(c, b.start, b.end - b.start); |
1190 | 1191 |