[ 
https://issues.apache.org/jira/browse/TS-4665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15430869#comment-15430869
 ] 

Susan Hinrichs commented on TS-4665:
------------------------------------

There was a case where the HTTP2 code was not being aggressive enough in 
terminating a stream. In this case, the chunked response is returned with the 
header. We missed the fact that the chunked response was complete and did not 
attach the END_OF_STREAM flag.  Actually the main part of this fix was pulled 
in with TS-4729.

Fixing that was easy enough. Then I had to change some direct handleEvent calls 
to schedule calls to avoid deleting the state machine on the stack (when 
terminating from the HttpTunnel event handler logic).  Running ASAN tracked 
down these issues.

> Http2 not terminating stream with short chunked response
> --------------------------------------------------------
>
>                 Key: TS-4665
>                 URL: https://issues.apache.org/jira/browse/TS-4665
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP/2
>            Reporter: Susan Hinrichs
>            Assignee: Susan Hinrichs
>             Fix For: 7.0.0
>
>
> We saw this in production.  The origin returned the chunked response 
> immediately and it was all delivered with the header to the Http2Stream 
> logic.  It didn't set the END_STREAM flag and the stream wasn't closed until 
> the timeout triggered.
> Fixing this required some additional checks to avoid shutdown race conditions.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to