sudheerv commented on issue #7333:
URL: https://github.com/apache/trafficserver/issues/7333#issuecomment-730723282


   > T11 will be in the event loop looking at the close flag on the netvc. It 
will not try to acquire the read vio's mutex before calling close_vc.
   
   Ah gotcha! As discussed on slack though, if we do not set `close` flag asap 
(or at least, prior to setting read.vio.cont to nullptr), a rescheduled read 
may end up getting unblocked (due to read.vio.cont.mutex not valid anymore) and 
perform net_read_io and can cause issues. One potential workaround might be to 
move setting close to latter, but, defer setting read.vio.cont and 
write.vio.cont to nullptr until `free()` is called. 
   
   I'm also not totally sure if this explains the h2 stack traces though.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to