Skip to content

Commit 155e596

Browse files
author
Christophe Jaillet
committed
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
1 parent 98595a6 commit 155e596

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/proxy/mod_proxy_http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,7 @@ int ap_proxy_http_process_response(apr_pool_t * p, request_rec *r,
13061306
"error reading status line from remote "
13071307
"server %s:%d", backend->hostname, backend->port);
13081308
if (APR_STATUS_IS_TIMEUP(rc)) {
1309-
apr_table_set(r->notes, "proxy_timedout", "1");
1309+
apr_table_setn(r->notes, "proxy_timedout", "1");
13101310
ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(01103) "read timeout");
13111311
if (do_100_continue) {
13121312
return ap_proxyerror(r, HTTP_SERVICE_UNAVAILABLE, "Timeout on 100-Continue");

0 commit comments

Comments
 (0)