]> granicus.if.org Git - apache/commitdiff
Merge r1775858 from trunk:
authorJim Jagielski <jim@apache.org>
Fri, 17 Feb 2017 15:37:19 +0000 (15:37 +0000)
committerJim Jagielski <jim@apache.org>
Fri, 17 Feb 2017 15:37:19 +0000 (15:37 +0000)
Return HTTP 504 rather than 503 when a proxy timeout is hit.

Part of the review for PR: 56188

Submitted by: elukey
Reviewed by: elukey, jim, wrowe

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1783414 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
STATUS
modules/proxy/mod_proxy_fcgi.c

diff --git a/CHANGES b/CHANGES
index 2b44410c24774d2fb0d30508bbf95f0f8b7c4c27..90cbce1a964078428472f3aecf21970e48e1d770 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,9 @@
 
 Changes with Apache 2.4.26
 
+  *) mod_proxy_fcgi: Return HTTP 504 rather than 503 in case of proxy timeout.
+     [Luca Toscano]
+
   *) mod_http2: not counting file buckets again stream max buffer limits. 
      Effectively transfering static files in one step from slave to master 
      connection. [Stefan Eissing]
diff --git a/STATUS b/STATUS
index 573179c8f70d5a83f994c85504f72b815514137c..d8876916bf58757b18d8992c1755e8a54f5afec4 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -145,10 +145,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-  *) mod_proxy_fcgi: Return HTTP 504 rather than 503 in case of proxy timeout.
-     trunk patch: http://svn.apache.org/r1775858
-     2.4 patch: trunk works (modulo CHANGES)
-     +1: elukey, jim, wrowe
 
 
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
index 415c8cf7fed54127d432cdcf74acb6806226dea2..3dc74dff9349fbc3666d077b1135217dfec2a3cc 100644 (file)
@@ -880,6 +880,9 @@ static int fcgi_do_request(apr_pool_t *p, request_rec *r,
         if (bad_request) {
             return ap_map_http_request_error(rv, HTTP_BAD_REQUEST);
         }
+        if (APR_STATUS_IS_TIMEUP(rv)) {
+            return HTTP_GATEWAY_TIME_OUT;
+        }
         return HTTP_SERVICE_UNAVAILABLE;
     }