Varnish closes conenction to haproxy

Stewart Robinson stewsnooze at gmail.com
Thu Oct 6 14:25:37 CEST 2011


Hi,

Have you specified long timeouts in your backend declaration?

backend www {
  .host = "www.example.com";
  .port = "http";
  .connect_timeout = 1s;
  .first_byte_timeout = 5s;
  .between_bytes_timeout = 2s;
}


Stew

On 6 October 2011 13:14, Jan Olausson <janneolausson at gmail.com> wrote:

> Hi!
>
> I have a problem with varnish closes the connection to haproxy infront of
> it.
> Haproxy reports a 502 error after exactly 60 seconds after it begun
> handling the request.
>
> If I skip both haproxy and varnish and let nginx handle the request
> directly, everything works although it takes 4-5 minutes to complete the
> request due to the complexity of the work that has to be done.
>
> Anyone here have a suggestion what I shall try?
> Varnish version is: varnish-3.0.0 revision 3bd5997
>
> Best regards
> Jan Olausson
> Sweden
>
>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20111006/cfe04416/attachment-0003.html>


More information about the varnish-misc mailing list