You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description setHandler() in HotSwapHandler has a race condition where the current handler is stopped before the new one is bound, because it uses updateBean(). This could lead to requests being dropped during the swap operation. A less racy implementation would look something like this, more or less inlining updateBean():
Jetty version(s)
All current
Java version/vendor
N/A
OS type/version
N/A
Description
setHandler()
inHotSwapHandler
has a race condition where the current handler is stopped before the new one is bound, because it usesupdateBean()
. This could lead to requests being dropped during the swap operation. A less racy implementation would look something like this, more or less inliningupdateBean()
:How to reproduce?
Bug found through static analysis of
HotSwapHandler
andContainerLifeCycle
The text was updated successfully, but these errors were encountered: