]> git.ipfire.org Git - thirdparty/squid.git/commit
HTTP Compliance: reply with 504 (Gateway Timeout) if required validation fails.
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 4 Oct 2010 15:40:04 +0000 (09:40 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Mon, 4 Oct 2010 15:40:04 +0000 (09:40 -0600)
commit2ac4f6b5309a8e196c252b421e4ae1283742680d
tree8cdc0b34d88894446569616657e0936d3543bec3
parent64f8c2cb114296630e0f2a122f93d86c96a79b0a
HTTP Compliance: reply with 504 (Gateway Timeout) if required validation fails.

RFC 2616 says that we MUST reply with 504 (Gateway Timeout) if validation
fails and cached reply has proxy-revalidate, must-revalidate or s-maxage
Cache-Control directive.

FwdState::makeConnectingError() method is added to set error status depending
on whether the request was a validation request.

Co-Advisor test cases:
    test_case/rfc2616/noSrv-hit-must-reval-s-maxage-resp
    test_case/rfc2616/noSrv-hit-must-reval-proxy-revalidate-resp
    test_case/rfc2616/noSrv-hit-must-reval-must-revalidate-resp
src/forward.cc
src/forward.h