You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Davi Arnaut <da...@haxent.com.br> on 2006/04/29 03:55:42 UTC
[PATCH]: upstream server timeout
According to RFC 2616, whenever a connection to a upstream server fails due to a
timeout (or DNS failure) the proxy server should return with status 504 (Gateway
Timeout).
--
Davi Arnaut
Index: mod_proxy_http.c
===================================================================
--- mod_proxy_http.c (revision 398058)
+++ mod_proxy_http.c (working copy)
@@ -1689,7 +1689,7 @@
/* Step Two: Make the Connection */
if (ap_proxy_connect_backend(proxy_function, backend, worker, r->server)) {
if (r->proxyreq == PROXYREQ_PROXY)
- status = HTTP_NOT_FOUND;
+ status = HTTP_GATEWAY_TIME_OUT;
else
status = HTTP_SERVICE_UNAVAILABLE;
goto cleanup;