comparison 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
comparison
equal deleted inserted replaced
109:97da525033a1 110:dad2fe8ecf08
190 190
191 if (c == NULL) { 191 if (c == NULL) {
192 return NGX_ERROR; 192 return NGX_ERROR;
193 } 193 }
194 194
195 c->pool = cycle->pool;
196
195 rev = c->read; 197 rev = c->read;
196 wev = c->write; 198 wev = c->write;
197 199
198 ngx_memzero(c, sizeof(ngx_connection_t));
199
200 c->read = rev;
201 c->write = wev;
202 c->fd = fd;
203 c->log = cycle->log;
204
205 c->pool = cycle->pool;
206
207 ngx_memzero(rev, sizeof(ngx_event_t));
208 ngx_memzero(wev, sizeof(ngx_event_t));
209
210 rev->log = cycle->log; 200 rev->log = cycle->log;
211 wev->log = cycle->log; 201 wev->log = cycle->log;
212
213 rev->index = NGX_INVALID_INDEX;
214 wev->index = NGX_INVALID_INDEX;
215
216 rev->data = c;
217 wev->data = c;
218 202
219 #if (NGX_THREADS) 203 #if (NGX_THREADS)
220 rev->lock = &c->lock; 204 rev->lock = &c->lock;
221 wev->lock = &c->lock; 205 wev->lock = &c->lock;
222 rev->own_lock = &c->lock; 206 rev->own_lock = &c->lock;