]> 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:51:49 +0000 (06:51 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Tue, 18 Mar 2014 06:51:49 +0000 (06:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1578759 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_ajp.c

index 29c7b6a939b0b53378635c2d0462da038bec1e33..14035f33e22e24e936774390f589c1baa4478993 100644 (file)
@@ -669,7 +669,7 @@ static int ap_proxy_ajp_request(apr_pool_t *p, request_rec *r,
             if (APR_STATUS_IS_TIMEUP(status) &&
                 conn->worker->s->ping_timeout_set &&
                 conn->worker->s->ping_timeout >= 0) {
-                apr_table_set(r->notes, "proxy_timedout", "1");
+                apr_table_setn(r->notes, "proxy_timedout", "1");
                 rv = HTTP_GATEWAY_TIME_OUT;
             }
             else {