Avoid using QUIC connection after CONNECTION_CLOSE.

This commit is contained in:
Roman Arutyunyan 2020-03-23 19:19:44 +03:00
parent 3fa1dec9c7
commit f4562d7ed9

View File

@ -644,8 +644,8 @@ ngx_quic_input(ngx_connection_t *c, ngx_buf_t *b)
rc = ngx_quic_app_input(c, &pkt); rc = ngx_quic_app_input(c, &pkt);
} }
if (rc == NGX_ERROR) { if (rc != NGX_OK) {
return NGX_ERROR; return rc;
} }
/* b->pos is at header end, adjust by actual packet length */ /* 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) { if (do_close) {
ngx_quic_close_connection(c); return NGX_DONE;
return NGX_OK;
} }
if (ack_this == 0) { if (ack_this == 0) {