]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r921347, r921583 from trunk:
authorStefan Fritsch <sf@apache.org>
Mon, 10 May 2010 19:56:30 +0000 (19:56 +0000)
committerStefan Fritsch <sf@apache.org>
Mon, 10 May 2010 19:56:30 +0000 (19:56 +0000)
mod_proxy_http: log backend port in various places

PR: 48812
Submitted by: igalic
Reviewed by: sf, pgollucci, trawick

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

CHANGES
STATUS
modules/proxy/mod_proxy_http.c

diff --git a/CHANGES b/CHANGES
index 4e8cf71091595c2415acd1f123ff927391252902..ca3c92f743ffc472d567e51f23b0e7b80267619a 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,8 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.2.16
 
+  *) mod_proxy_http: Log the port of the remote server in various messages.
+     PR 48812. [Igor Galić <i galic brainsware org>] 
 
   *) apxs: Fix -A and -a options to ignore whitespace in httpd.conf
      [Philip M. Gollucci]
diff --git a/STATUS b/STATUS
index 4c95ccd93dc867c5f87ed213b766eb4aefe33821..ed33b5a3ea73d672218c3ff9a29a3c069300f6e8 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -86,12 +86,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-  * mod_proxy_http: Log backend server port in error messages
-    Trunk patch: http://svn.apache.org/viewvc?rev=921347&view=rev
-                 http://svn.apache.org/viewvc?rev=921583&view=rev
-    2.2.x patch: Trunk patch works
-    +1: sf, pgollucci, trawick
-
   * Update apxs for perl 5.12
     Trunk patch: http://svn.apache.org/viewvc?rev=932791&view=rev
     2.2.x patch: trunk patch works
index 7e4767f9187b22bc2b476fb10f3fc8e37d273e66..555a3b81404d09ee0c56e171b9424fe6e481797e 100644 (file)
@@ -1400,7 +1400,7 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r,
         if (len <= 0) {
             ap_log_rerror(APLOG_MARK, APLOG_ERR, rc, r,
                           "proxy: error reading status line from remote "
-                          "server %s", backend->hostname);
+                          "server %s:%d", backend->hostname, backend->port);
             if (rc == APR_TIMEUP) {
                 ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r,
                               "proxy: read timeout");
@@ -1422,9 +1422,9 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r,
 
                 ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r,
                               "proxy: Closing connection to client because"
-                              " reading from backend server %s failed. Number"
-                              " of keepalives %i", backend->hostname, 
-                              c->keepalives);
+                              " reading from backend server %s:%d failed."
+                              " Number of keepalives %i", backend->hostname, 
+                              backend->port, c->keepalives);
                 ap_proxy_backend_broke(r, bb);
                 /*
                  * Add an EOC bucket to signal the ap_http_header_filter
@@ -1455,8 +1455,9 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r,
             else if (!c->keepalives) {
                      ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r,
                                    "proxy: NOT Closing connection to client"
-                                   " although reading from backend server %s"
-                                   " failed.", backend->hostname);
+                                   " although reading from backend server %s:%d"
+                                   " failed.", backend->hostname,
+                                   backend->port);
             }
             return ap_proxyerror(r, HTTP_BAD_GATEWAY,
                                  "Error reading from remote server");
@@ -1561,8 +1562,9 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r,
                  */
                 apr_table_unset(r->headers_out, "Content-Length");
                 ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
-                             "proxy: server %s returned Transfer-Encoding"
-                             " and Content-Length", backend->hostname);
+                             "proxy: server %s:%d returned Transfer-Encoding"
+                             " and Content-Length", backend->hostname,
+                             backend->port);
                 backend->close += 1;
             }