[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-dev] Setting "asyncSupported" in ServletHolder.java
|
Hi,
On Mon, Jun 9, 2014 at 2:44 PM, Greg Johnson
<greg.johnson@xxxxxxxxxxxxxxx> wrote:
> hi, in ServletHolder.java.handel() @ around line 744 there is:
>
> if (!isAsyncSupported())
> baseRequest.setAsyncSupported(false);
>
> should this be just "baseRequest.setAsyncSupported(isAsyncSupported);” ?
>
> otherwise it seems it's not possible to set aysncSupported to true for a servlet in ServeltHolder via xml,
>
> e.g. when deploying horde.org on jetty 9.2.0.v20140526 with:
> <Configure id="hordeContext" class="org.eclipse.jetty.webapp.WebAppContext">
> <Set name="contextPath">/horde</Set>
> <Set name="resourceBase">/usr/local/share/horde</Set>
> <Call name="addServlet">
> <Arg>
> <New class="org.eclipse.jetty.servlet.ServletHolder">
> <Arg><New class="org.eclipse.jetty.servlets.CGI"/></Arg>
> <Set name="asyncSupported">true</Set>
> </New>
> </Arg>
> <Arg>*.php:/rpc.php/*:/services/ajax.php/*</Arg>
> </Call>
> </Configure>
>
> horde fails with:
> java.lang.IllegalStateException: !asyncSupported
> at org.eclipse.jetty.server.Request.startAsync(Request.java:2063)
> at org.eclipse.jetty.servlets.CGI.exec(CGI.java:349)
>
> after making the above “baseRequest.setAsyncSupported(isAsyncSupported);” change to “ServletHolder.java”, horde.org runs without error.
>
> if my analysis is correct, i’m happy to add a bug and provide a patch.
Yes please.
Is this for Jetty 9+ ?
--
Simone Bordet
----
http://cometd.org
http://webtide.com
http://intalio.com
Developer advice, training, services and support
from the Jetty & CometD experts.
Intalio, the modern way to build business applications.