From 51f83087f2402ecb97b33d458c1cc2603279c534 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 31 Aug 2021 14:19:31 +0900 Subject: [PATCH] nghttpx: Add missing HTTP/3 timer handling --- src/shrpx_http3_upstream.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shrpx_http3_upstream.cc b/src/shrpx_http3_upstream.cc index 4a4521b9..f15961b7 100644 --- a/src/shrpx_http3_upstream.cc +++ b/src/shrpx_http3_upstream.cc @@ -1799,6 +1799,7 @@ namespace { int http_end_request_headers(nghttp3_conn *conn, int64_t stream_id, void *user_data, void *stream_user_data) { auto upstream = static_cast(user_data); + auto handler = upstream->get_client_handler(); auto downstream = static_cast(stream_user_data); if (!downstream || downstream->get_stop_reading()) { @@ -1809,6 +1810,9 @@ int http_end_request_headers(nghttp3_conn *conn, int64_t stream_id, return NGHTTP3_ERR_CALLBACK_FAILURE; } + downstream->reset_upstream_rtimer(); + handler->stop_read_timer(); + return 0; } } // namespace