httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davi Arnaut <d...@haxent.com.br>
Subject [PATCH]: upstream server timeout
Date Sat, 29 Apr 2006 01:55:42 GMT

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;

Mime
View raw message