]> granicus.if.org Git - apache/commitdiff
Use 'apr_table_setn' instead of 'apr_table_set' when possible in order to save memory.
authorChristophe Jaillet <jailletc36@apache.org>
Tue, 18 Mar 2014 06:52:08 +0000 (06:52 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Tue, 18 Mar 2014 06:52:08 +0000 (06:52 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1578760 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_http.c

index 1c6b00b74e1d77b5616d7f0132396370d4788b20..fbe300122bb1efb4efea911cac34bfaa8d1dd9ee 100644 (file)
@@ -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");