Mercurial > hg > nginx
comparison src/event/ngx_event_accept.c @ 315:39b6f2df45c0
nginx-0.0.3-2004-04-14-21:44:28 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 14 Apr 2004 17:44:28 +0000 |
parents | f5431a4bbc7d |
children | ba876b26b76d |
comparison
equal
deleted
inserted
replaced
314:d71c87d11b16 | 315:39b6f2df45c0 |
---|---|
400 * number by 4) because this function would never called | 400 * number by 4) because this function would never called |
401 * in the Winsock environment | 401 * in the Winsock environment |
402 */ | 402 */ |
403 | 403 |
404 if (ngx_event_flags & NGX_USE_SIGIO_EVENT) { | 404 if (ngx_event_flags & NGX_USE_SIGIO_EVENT) { |
405 if (!cycle->connections[s[i].fd].read->active) { | |
406 continue; | |
407 } | |
408 | |
405 if (ngx_del_conn(&cycle->connections[s[i].fd], NGX_DISABLE_EVENT) | 409 if (ngx_del_conn(&cycle->connections[s[i].fd], NGX_DISABLE_EVENT) |
406 == NGX_ERROR) | 410 == NGX_ERROR) |
407 { | 411 { |
408 return NGX_ERROR; | 412 return NGX_ERROR; |
409 } | 413 } |
410 | 414 |
411 } else { | 415 } else { |
416 if (!cycle->read_events[s[i].fd].active) { | |
417 continue; | |
418 } | |
419 | |
412 if (ngx_del_event(&cycle->read_events[s[i].fd], NGX_READ_EVENT, | 420 if (ngx_del_event(&cycle->read_events[s[i].fd], NGX_READ_EVENT, |
413 NGX_DISABLE_EVENT) == NGX_ERROR) | 421 NGX_DISABLE_EVENT) == NGX_ERROR) |
414 { | 422 { |
415 return NGX_ERROR; | 423 return NGX_ERROR; |
416 } | 424 } |