Github user masaori335 commented on a diff in the pull request:

    https://github.com/apache/trafficserver/pull/760#discussion_r68878648
  
    --- Diff: proxy/http2/Http2ConnectionState.cc ---
    @@ -1054,7 +1055,7 @@ Http2ConnectionState::send_a_data_frame(Http2Stream 
*stream, size_t &payload_len
         return HTTP2_SEND_A_DATA_FRAME_NO_PAYLOAD;
       }
     
    -  if (stream->is_body_done() && payload_length < available_size) {
    +  if (stream->is_body_done() && payload_length <= available_size) {
    --- End diff --
    
    IMO, to stop sending 0 payload DATA frame with END_STREAM flag, we need to 
check read available size of current_reader. Something like this.
    https://paste.apache.org/8eVP


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to