Mercurial > hg > nginx-ranges
diff src/os/unix/ngx_channel.c @ 110:dad2fe8ecf08 NGINX_0_3_2
nginx 0.3.2
*) Feature: the Sun Studio 10 C compiler support.
*) Feature: the "proxy_upstream_max_fails",
"proxy_upstream_fail_timeout", "fastcgi_upstream_max_fails", and
"fastcgi_upstream_fail_timeout" directives.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 12 Oct 2005 00:00:00 +0400 |
parents | 45945fa8b8ba |
children | 408f195b3482 |
line wrap: on
line diff
--- a/src/os/unix/ngx_channel.c +++ b/src/os/unix/ngx_channel.c @@ -192,30 +192,14 @@ ngx_add_channel_event(ngx_cycle_t *cycle return NGX_ERROR; } + c->pool = cycle->pool; + rev = c->read; wev = c->write; - ngx_memzero(c, sizeof(ngx_connection_t)); - - c->read = rev; - c->write = wev; - c->fd = fd; - c->log = cycle->log; - - c->pool = cycle->pool; - - ngx_memzero(rev, sizeof(ngx_event_t)); - ngx_memzero(wev, sizeof(ngx_event_t)); - rev->log = cycle->log; wev->log = cycle->log; - rev->index = NGX_INVALID_INDEX; - wev->index = NGX_INVALID_INDEX; - - rev->data = c; - wev->data = c; - #if (NGX_THREADS) rev->lock = &c->lock; wev->lock = &c->lock;