You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by "kspoelstra-aviatrix (via GitHub)" <gi...@apache.org> on 2023/02/03 18:12:35 UTC

[GitHub] [trafficserver] kspoelstra-aviatrix commented on a diff in pull request #9366: Http2 to origin

kspoelstra-aviatrix commented on code in PR #9366:
URL: https://github.com/apache/trafficserver/pull/9366#discussion_r1096107553


##########
proxy/http2/Http2Stream.cc:
##########
@@ -520,35 +577,47 @@ Http2Stream::initiating_close()
     bool sent_write_complete = false;
     if (_sm) {
       // Push out any last IO events
-      if (write_vio.cont) {
+      // First look for active write or read
+      if (write_vio.cont && write_vio.nbytes > 0 && write_vio.ndone == write_vio.nbytes &&

Review Comment:
   This can possibly sent out a duplicate VC_EVENT_WRITE_COMPLETE/EOS to the HttpSM.
   The HttpSM code is not setup to handle this, for example: if this happens after the tunnel_handler_post, we crash on the assert in tunnel_handler (expect event==EVENT_TUNNEL_DONE). 
   I have a fix running which has booleans for the read write vios, I'll add a pull request later
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org