Apologies if this question has already been answered elsewhere; closest I could find is this thread:  <a href="http://lists.jboss.org/pipermail/undertow-dev/2014-August/000898.html">http://lists.jboss.org/pipermail/undertow-dev/2014-August/000898.html</a><div><br></div><div>HttpServerExchange cannot be manipulated from multiple threads (without locking).  Thus, dispatch and executeAfter wouldn&#39;t work if the goal is to end the exchange after the max. time to process (request) has been exceeded.</div><div><br></div><div>I can implement this timeout mechanism using out-of-band thread executor but was hoping there is a more efficient way provided by the framework.  Thanks.</div><div><br></div><div>Best,</div><div><br></div><div>stan</div>