comparison src/os/unix/ngx_channel.c @ 561:e48ebafc6939 release-0.3.2

nginx-0.3.2-RELEASE import *) 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 <igor@sysoev.ru>
date Wed, 12 Oct 2005 13:50:36 +0000
parents 511a89da35ad
children 9c2f3ed7a247
comparison
equal deleted inserted replaced
560:8886091eddd2 561:e48ebafc6939
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;