]> git.ipfire.org Git - thirdparty/squid.git/commit - src/auth/digest/UserRequest.cc
url_rewrite_timeout directive
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 4 Dec 2014 14:00:17 +0000 (16:00 +0200)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 4 Dec 2014 14:00:17 +0000 (16:00 +0200)
commit32fd6d8a226663eb89ddd797ab6c5f3dc2e2d9dd
treedbefbed037c36701f454d0d1376c93c49406ba84
parentfe3f89770a452afed022f43d11c78fce75cebff1
url_rewrite_timeout directive

This patch adds the url_rewrite_timeout directive.

When configured, Squid keeps track of active requests and treats timed out
requests to redirector as failed requests.

url_rewrite_timeout format:

  url_rewrite_timeout timeout time-units on_timeout=<fail|bypass|retry|use_configured_response> [response=<quoted-string>]

The url_rewrite_timeout directive can accept the on_timeout argument to allow
user configure the action when the helper request times out.
The available actions are:

     fail: squid return a ERR_GATEWAY_FAILURE error page
     bypass: the url is not rewritten.
     retry: retry the request to helper
     use_configured_response: use a response which can be configured using the
         the response= option

Example usage:
    url_rewrite_timeout 30 seconds \
        on_timeout=use_configured_response \
        response="OK url=http://example.com/support"

This is a Measurement Factory project
23 files changed:
doc/release-notes/release-3.6.sgml
src/ClientRequestContext.h
src/ConfigParser.cc
src/ConfigParser.h
src/SquidConfig.h
src/auth/digest/UserRequest.cc
src/auth/negotiate/UserRequest.cc
src/auth/ntlm/UserRequest.cc
src/cache_cf.cc
src/cf.data.depend
src/cf.data.pre
src/client_side_request.cc
src/client_side_request.h
src/err_detail_type.h
src/helper.cc
src/helper.h
src/helper/Reply.cc
src/helper/Reply.h
src/helper/Request.h
src/helper/ResultCode.h
src/redirect.cc
src/redirect.h
tools/helper-mux/helper-mux.pl.in