shukitchan commented on issue #7372: URL: https://github.com/apache/trafficserver/issues/7372#issuecomment-770691427
Actually just try it out in 9.0.0 . It works fine. I think it is due to the change mentioned here - https://docs.trafficserver.apache.org/en/latest/developer-guide/api/functions/TSContScheduleOnPool.en.html?highlight=tscontscheduleonpool ts.sleep() is implemented using TSContScheduleOnPool(). The idea is to schedule a continuation to wake up again later according to the specified duration and let that re-enable the one that runs ts.sleep() . And if the thread is different, it will cause the crash. And the change in TSContScheduleOnPool in 9.0.0 is such that the thread will be the same (i.e. scenario 2 - no thread affinity info, same types of threads) ---------------------------------------------------------------- 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]
