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

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

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

zwoop pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


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

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

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

diff --git a/proxy/http2/Http2ConnectionState.cc b/proxy/http2/Http2ConnectionState.cc
index 650b72b..24b0584 100644
--- a/proxy/http2/Http2ConnectionState.cc
+++ b/proxy/http2/Http2ConnectionState.cc
@@ -1657,6 +1657,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;
   }