nghttpx: Add missing HTTP/3 timer handling

This commit is contained in:
Tatsuhiro Tsujikawa 2021-08-31 14:19:31 +09:00
parent 17012654e1
commit 51f83087f2
1 changed files with 4 additions and 0 deletions

View File

@ -1799,6 +1799,7 @@ namespace {
int http_end_request_headers(nghttp3_conn *conn, int64_t stream_id, int http_end_request_headers(nghttp3_conn *conn, int64_t stream_id,
void *user_data, void *stream_user_data) { void *user_data, void *stream_user_data) {
auto upstream = static_cast<Http3Upstream *>(user_data); auto upstream = static_cast<Http3Upstream *>(user_data);
auto handler = upstream->get_client_handler();
auto downstream = static_cast<Downstream *>(stream_user_data); auto downstream = static_cast<Downstream *>(stream_user_data);
if (!downstream || downstream->get_stop_reading()) { 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; return NGHTTP3_ERR_CALLBACK_FAILURE;
} }
downstream->reset_upstream_rtimer();
handler->stop_read_timer();
return 0; return 0;
} }
} // namespace } // namespace