Mercurial > hg > nginx
comparison src/event/ngx_event_connect.c @ 191:71ce40b3c37b
nginx-0.0.1-2003-11-19-19:26:41 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 19 Nov 2003 16:26:41 +0000 |
parents | c966c09be66b |
children | 2357fa41738a |
comparison
equal
deleted
inserted
replaced
190:02a715e85df1 | 191:71ce40b3c37b |
---|---|
156 | 156 |
157 ngx_memzero(c, sizeof(ngx_connection_t)); | 157 ngx_memzero(c, sizeof(ngx_connection_t)); |
158 ngx_memzero(rev, sizeof(ngx_event_t)); | 158 ngx_memzero(rev, sizeof(ngx_event_t)); |
159 ngx_memzero(wev, sizeof(ngx_event_t)); | 159 ngx_memzero(wev, sizeof(ngx_event_t)); |
160 | 160 |
161 rev->index = wev->index = NGX_INVALID_INDEX; | 161 rev->index = NGX_INVALID_INDEX; |
162 rev->data = wev->data = c; | 162 wev->index = NGX_INVALID_INDEX; |
163 | |
164 rev->data = c; | |
165 wev->data = c; | |
166 | |
163 c->read = rev; | 167 c->read = rev; |
164 c->write = wev; | 168 c->write = wev; |
165 wev->write = 1; | 169 wev->write = 1; |
166 | 170 |
167 rev->instance = wev->instance = !instance; | 171 rev->instance = !instance; |
168 | 172 wev->instance = !instance; |
169 rev->log = wev->log = c->log = pc->log; | 173 |
174 c->log = pc->log; | |
175 rev->log = pc->log; | |
176 wev->log = pc->log; | |
177 | |
170 c->fd = s; | 178 c->fd = s; |
171 | 179 |
172 pc->connection = c; | 180 pc->connection = c; |
173 | 181 |
174 if (ngx_add_conn) { | 182 if (ngx_add_conn) { |