Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Turn on "async-supported" in default servlet

Just create your own "default" servlet reference in your web.xml with the async-supported turned on.

Note however, that the performance features of the Jetty DefaultServlet might make modifying the response very difficult, as Jetty essentially skips the servlet paths entirely and writes directly from filesystem to http connection via memory mapped files.

--
Joakim Erdfelt <joakim@xxxxxxxxxxx>
Expert advice, services and support from from the Jetty & CometD experts

On Sat, May 16, 2015 at 3:39 PM, Guillaume Drouet <guidrouet@xxxxxxxxx> wrote:
Hi,

I want to create an AyncContext in a filter that intercepts statics served by the default servlet.

I can't create the AsyncContext because ServletRequest#isAsyncSupported() returns false, since the targetted servlet is the default servlet which does not supports async.

Is it possible to enable async support in the default servlet?

Thanks

--
Guillaume DROUET

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users


Back to the top