Mercurial > hg > nginx-quic
comparison src/core/ngx_connection.c @ 317:1308b98496a2
nginx-0.0.3-2004-04-15-19:34:36 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 15 Apr 2004 15:34:36 +0000 |
parents | 00c5660d2707 |
children | 55e496a8ece3 |
comparison
equal
deleted
inserted
replaced
316:a0beefedaf94 | 317:1308b98496a2 |
---|---|
226 */ | 226 */ |
227 | 227 |
228 fd /= 4; | 228 fd /= 4; |
229 #endif | 229 #endif |
230 | 230 |
231 ngx_del_event(&cycle->read_events[fd], NGX_READ_EVENT, NGX_CLOSE_EVENT); | 231 if (ngx_event_flags & NGX_USE_SIGIO_EVENT) { |
232 if (cycle->connections[fd].read->active) { | |
233 ngx_del_conn(&cycle->connections[fd], NGX_CLOSE_EVENT); | |
234 } | |
235 | |
236 } else { | |
237 if (cycle->read_events[fd].active) { | |
238 ngx_del_event(&cycle->read_events[fd], | |
239 NGX_READ_EVENT, NGX_CLOSE_EVENT); | |
240 } | |
241 } | |
232 | 242 |
233 if (ngx_close_socket(ls[i].fd) == -1) { | 243 if (ngx_close_socket(ls[i].fd) == -1) { |
234 ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_socket_errno, | 244 ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_socket_errno, |
235 ngx_close_socket_n " %s failed", | 245 ngx_close_socket_n " %s failed", |
236 ls[i].addr_text.data); | 246 ls[i].addr_text.data); |