You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2021/10/08 02:07:20 UTC

[trafficserver] branch master updated: Fix a potential H2 stall issue (#8381)

This is an automated email from the ASF dual-hosted git repository.

maskit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 870b857  Fix a potential H2 stall issue (#8381)
870b857 is described below

commit 870b857bbbc1d993d6c66672a09b561c13f087d5
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Fri Oct 8 11:07:10 2021 +0900

    Fix a potential H2 stall issue (#8381)
---
 proxy/http2/Http2ConnectionState.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/proxy/http2/Http2ConnectionState.cc b/proxy/http2/Http2ConnectionState.cc
index 75e8588..5e87fd8 100644
--- a/proxy/http2/Http2ConnectionState.cc
+++ b/proxy/http2/Http2ConnectionState.cc
@@ -1655,6 +1655,7 @@ Http2ConnectionState::send_a_data_frame(Http2Stream *stream, size_t &payload_len
 
   if (this->session->write_avail() == 0) {
     Http2StreamDebug(this->session, stream->get_id(), "Not write avail");
+    this->session->flush();
     return Http2SendDataFrameResult::NOT_WRITE_AVAIL;
   }