Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] HTTP 504 Gateway timeout issue

Hi Simone,

Thank you for pointing out the use of AsyncContext, indeed it seems to be the problem :-)
I'm using Scalatra with the FutureSupport trait, which does the request.startAsync() call.

Thank you all for your help,
Best wishes,
Daniel

On Fri, Feb 21, 2020 at 6:17 PM Simone Bordet <sbordet@xxxxxxxxxxx> wrote:
Hi,

On Fri, Feb 21, 2020 at 3:51 PM Dániel Sali
<daniel.sali@xxxxxxxxxxxxxxxxx> wrote:
> Thanks for the quick reply, unfortunately, I'm not using the ProxyServlet and I still get an error.

[snip]

Your application calls request.startAsync(), but does not specify the
async context timeout, which by default is 30 seconds.
You want to do

AsyncContext asyncContext = request.startAsync();
asyncContext.setTimeout(/* your value here*/);

Use 0 to set an infinite timeout (i.e. your application must resume
the processing explicitly).

--
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users

Back to the top