Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Long running request timeouts


There is nothing you can totally at the jetty level as the servlet spec does not allow jetty to interrupt a dispatched thread.  

Depending on you application, you could also try writing a simple filter that remembers the thread that it passed on through the chain and it can attempt to apply a timeout and do the interrupt.   If your handling is interruptible, this simple approach could work.

But many are not interruptible.  However, you could perhaps look at async servlets - using request.startAsync(),  Then you can disassociate the thread handling the response from the thread that generates the response.



Back to the top