You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2014/03/18 07:52:08 UTC

svn commit: r1578760 - /httpd/httpd/trunk/modules/proxy/mod_proxy_http.c

Author: jailletc36
Date: Tue Mar 18 06:52:08 2014
New Revision: 1578760

URL: http://svn.apache.org/r1578760
Log:
Use 'apr_table_setn' instead of 'apr_table_set' when possible in order to save memory.

Modified:
    httpd/httpd/trunk/modules/proxy/mod_proxy_http.c

Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_http.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_http.c?rev=1578760&r1=1578759&r2=1578760&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy_http.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy_http.c Tue Mar 18 06:52:08 2014
@@ -1306,7 +1306,7 @@ int ap_proxy_http_process_response(apr_p
                           "error reading status line from remote "
                           "server %s:%d", backend->hostname, backend->port);
             if (APR_STATUS_IS_TIMEUP(rc)) {
-                apr_table_set(r->notes, "proxy_timedout", "1");
+                apr_table_setn(r->notes, "proxy_timedout", "1");
                 ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(01103) "read timeout");
                 if (do_100_continue) {
                     return ap_proxyerror(r, HTTP_SERVICE_UNAVAILABLE, "Timeout on 100-Continue");