From: Christophe Jaillet Date: Tue, 18 Mar 2014 06:52:08 +0000 (+0000) Subject: Use 'apr_table_setn' instead of 'apr_table_set' when possible in order to save memory. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=155e596caf0dba60664ff95836032eaa759d5887;p=thirdparty%2Fapache%2Fhttpd.git Use 'apr_table_setn' instead of 'apr_table_set' when possible in order to save memory. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1578760 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy_http.c b/modules/proxy/mod_proxy_http.c index 1c6b00b74e1..fbe300122bb 100644 --- a/modules/proxy/mod_proxy_http.c +++ b/modules/proxy/mod_proxy_http.c @@ -1306,7 +1306,7 @@ int ap_proxy_http_process_response(apr_pool_t * p, request_rec *r, "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");