mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
Return consistent error status for proxy unable to connect
PR 46971 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@806920 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
4
CHANGES
4
CHANGES
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
Changes with Apache 2.3.3
|
Changes with Apache 2.3.3
|
||||||
|
|
||||||
|
*) Proxy: unable to connect to a backend is SERVICE_UNAVAILABLE,
|
||||||
|
rather than BAD_GATEWAY or (especially) NOT_FOUND.
|
||||||
|
PR 46971 [evanc nortel.com]
|
||||||
|
|
||||||
*) Various modules: Do better checking of pollset operations in order to
|
*) Various modules: Do better checking of pollset operations in order to
|
||||||
avoid segmentation faults if they fail. PR 46467
|
avoid segmentation faults if they fail. PR 46467
|
||||||
[Stefan Fritsch <sf sfritsch.de>]
|
[Stefan Fritsch <sf sfritsch.de>]
|
||||||
|
@@ -199,7 +199,7 @@ static int proxy_connect_handler(request_rec *r, proxy_worker *worker,
|
|||||||
return DECLINED;
|
return DECLINED;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return HTTP_BAD_GATEWAY;
|
return HTTP_SERVICE_UNAVAILABLE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1972,9 +1972,6 @@ static int proxy_http_handler(request_rec *r, proxy_worker *worker,
|
|||||||
|
|
||||||
/* Step Two: Make the Connection */
|
/* Step Two: Make the Connection */
|
||||||
if (ap_proxy_connect_backend(proxy_function, backend, worker, r->server)) {
|
if (ap_proxy_connect_backend(proxy_function, backend, worker, r->server)) {
|
||||||
if (r->proxyreq == PROXYREQ_PROXY)
|
|
||||||
status = HTTP_NOT_FOUND;
|
|
||||||
else
|
|
||||||
status = HTTP_SERVICE_UNAVAILABLE;
|
status = HTTP_SERVICE_UNAVAILABLE;
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user