Skip to content

Commit

Permalink
Merge pull request #1887 from lurker-Chen/xquic_fix
Browse files Browse the repository at this point in the history
fix close request after upstream finished
  • Loading branch information
drawing authored Nov 9, 2023
2 parents ad34e3c + afb45fb commit e5a2a78
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/ngx_http_xquic_module/ngx_http_v3_stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -1279,11 +1279,11 @@ ngx_http_v3_close_stream(ngx_http_v3_stream_t *h3_stream,
fc = h3_stream->request->connection;
r = h3_stream->request;

// if (h3_stream->queued) {
// fc->write->handler = ngx_http_v3_close_stream_handler;
// fc->read->handler = ngx_http_v3_close_stream_handler;
// return;
// }
if (h3_stream->engine_inner_closed == 0 && h3_stream->queued) {
fc->write->handler = ngx_http_v3_close_stream_handler;
fc->read->handler = ngx_http_v3_close_stream_handler;
return;
}

ngx_log_debug2(NGX_LOG_DEBUG_HTTP, fc->log, 0,
"|xquic| close stream %ui, processing %ui|",
Expand Down

0 comments on commit e5a2a78

Please sign in to comment.