From a44544ea81ef585e4694c15277e5e00236be4126 Mon Sep 17 00:00:00 2001 From: "dreamwind.ll" Date: Thu, 26 Oct 2023 17:08:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dxquic=20module=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E5=87=BA=E7=8E=B0=E7=9A=84=E8=BF=9E=E6=8E=A5=E6=B3=84?= =?UTF-8?q?=E6=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ngx_http_xquic_filter_module.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/ngx_http_xquic_module/ngx_http_xquic_filter_module.c b/modules/ngx_http_xquic_module/ngx_http_xquic_filter_module.c index 54a045e259..6eff925420 100644 --- a/modules/ngx_http_xquic_module/ngx_http_xquic_filter_module.c +++ b/modules/ngx_http_xquic_module/ngx_http_xquic_filter_module.c @@ -72,7 +72,8 @@ ngx_http_xquic_stream_send_header(ngx_http_v3_stream_t *qstream) &(qstream->resp_headers), header_only); if (ret < 0) { ngx_log_error(NGX_LOG_WARN, ngx_cycle->log, 0, - "|xquic|xqc_h3_request_send_headers error %z|", ret); + "|xquic|xqc_h3_request_send_headers error|ret=%z|", ret); + qstream->queued--; return NGX_ERROR; } else { ngx_log_error(NGX_LOG_DEBUG, ngx_cycle->log, 0, @@ -729,7 +730,9 @@ ngx_http_xquic_send_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit) goto RETURN_EAGAIN; } else if (n < 0) { - + ngx_log_error(NGX_LOG_WARN, r->connection->log, 0, + "|xquic|ngx_http_xquic_send_chain|send body fin error|"); + r->xqstream->queued--; goto RETURN_ERROR; } @@ -778,6 +781,10 @@ ngx_http_xquic_send_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit) if (n < 0) { if (n == NGX_AGAIN) { h3_stream->wait_to_write = 1; + } else { + ngx_log_error(NGX_LOG_DEBUG, r->connection->log, 0, + "|xquic|ngx_http_xquic_send_chain|send body error, body_sent %ui, size %O, n=%z|last=%i|", + r->xqstream->body_sent, size, n, last_out->buf->last_buf); } break;