comparison src/stream/ngx_stream.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 61d7ae76647d
children 3c344ea7d88b
comparison
equal deleted inserted replaced
6128:69ad3e77922b 6129:187aa751ad62
368 ls->addr_ntop = 1; 368 ls->addr_ntop = 1;
369 ls->handler = ngx_stream_init_connection; 369 ls->handler = ngx_stream_init_connection;
370 ls->pool_size = 256; 370 ls->pool_size = 256;
371 371
372 cscf = addr->ctx->srv_conf[ngx_stream_core_module.ctx_index]; 372 cscf = addr->ctx->srv_conf[ngx_stream_core_module.ctx_index];
373
373 ls->logp = cscf->error_log; 374 ls->logp = cscf->error_log;
374
375 ls->log.data = &ls->addr_text; 375 ls->log.data = &ls->addr_text;
376 ls->log.handler = ngx_accept_log_error; 376 ls->log.handler = ngx_accept_log_error;
377 377
378 ls->keepalive = addr[i].so_keepalive; 378 ls->keepalive = addr[i].so_keepalive;
379 #if (NGX_HAVE_KEEPALIVE_TUNABLE) 379 #if (NGX_HAVE_KEEPALIVE_TUNABLE)