Hi,

I used to have this:

sub vcl_fetch {
...
...
  if ((beresp.status == 500) && (req.request == "GET" )) {
      if  (req.restarts < 2 )  {
        std.log( "USF req restart 500 try #" + req.restarts);
        return(restart);
      } else {
        std.log ("USF req restart 500 miss");
      }
    }
  }
...
...
}

In vcl_backend_response it is not possible to use req.restarts. How to do the restarts in 4.0.1? I don't want to change the default in max_restarts.

Thanks

Oliver Joa

*********************************************************************
Der Inhalt dieser E-Mail ist ausschließlich für den bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form der Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des Inhalts dieser E-Mail unzulässig ist. Wir bitten Sie, sich in diesem Fall mit dem Absender der E-Mail in Verbindung zu setzen. The content of this e-mail is meant exclusively for the person to whom it is addressed. If you are not the person to whom this e-mail is addressed or his/her representative, please be informed that any form of knowledge, publication, duplication or distribution of the content of this e-mail is inadmissible. In such cases we kindly ask you to contact the sender of this e-mail.
_
*********************************************************************


_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to