hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Van de Velde <thomase...@gmail.com>
Subject Re: 504 Gateway timeouts
Date Sun, 27 Nov 2011 14:22:08 GMT
Jon,

I think I found it out. We had a short timeout on our responses and so we
were seeing 504s being generated by the client when that timeout was
reached.

Thomas

On Mon, Nov 21, 2011 at 6:36 PM, Jon Moore <jonm@apache.org> wrote:

> Hi Thomas,
>
> Are you using the caching module (CachingHttpClient)? If so, there are
> certain cases where the cache is required to return 504 responses if
> it can't talk to the origin. Since you're making a large number of
> concurrent requests, it's possible the origin is being overloaded.
> Another question is whether there is a proxy (e.g. Squid/Varnish)
> between your client and origin--if so, it could be the source of the
> 504s for the same reason.
>
> Can you post a wire log showing some of the successful and
> unsuccessful responses?
>
> http://hc.apache.org/httpcomponents-client-ga/logging.html
>
> Jon
>
> On Mon, Nov 21, 2011 at 6:51 PM, Thomas Van de Velde
> <thomasevdv@gmail.com> wrote:
> > Hi,
> >
> > We are seeing 504 error response being received by the client but none
> > appeared in the server logs. Is it possible that the httpclient is
> return a
> > 504 instead of the server? If so, what can we do to tune the client? We
> are
> > making a large number of concurrent http requests.
> >
> > Thanks,
> > Thomas
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message