comparison src/http/ngx_http_core_module.c @ 6129:187aa751ad62

Core: the ngx_set_connection_log() macro. The http and stream versions of this macro were identical.
author Vladimir Homutov <vl@nginx.com>
date Sat, 25 Apr 2015 22:44:02 +0300
parents 42d9beeb22db
children 2911b7e5491b
comparison
equal deleted inserted replaced
6128:69ad3e77922b 6129:187aa751ad62
1443 r->loc_conf = clcf->limit_except_loc_conf; 1443 r->loc_conf = clcf->limit_except_loc_conf;
1444 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); 1444 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
1445 } 1445 }
1446 1446
1447 if (r == r->main) { 1447 if (r == r->main) {
1448 ngx_http_set_connection_log(r->connection, clcf->error_log); 1448 ngx_set_connection_log(r->connection, clcf->error_log);
1449 } 1449 }
1450 1450
1451 if ((ngx_io.flags & NGX_IO_SENDFILE) && clcf->sendfile) { 1451 if ((ngx_io.flags & NGX_IO_SENDFILE) && clcf->sendfile) {
1452 r->connection->sendfile = 1; 1452 r->connection->sendfile = 1;
1453 1453