comparison src/os/unix/ngx_aio_write.c @ 103:6dfda4cf5200

nginx-0.0.1-2003-06-11-19:28:34 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 11 Jun 2003 15:28:34 +0000
parents 738fe44c70d5
children ef8c87afcfc5
comparison
equal deleted inserted replaced
102:7e86d028d8f0 103:6dfda4cf5200
1 1
2 #include <ngx_config.h> 2 #include <ngx_config.h>
3 #include <ngx_core.h> 3 #include <ngx_core.h>
4 #include <ngx_event.h>
4 #include <ngx_aio.h> 5 #include <ngx_aio.h>
5 6
6 #if (HAVE_KQUEUE) 7 #if (HAVE_KQUEUE)
7 #include <ngx_kqueue_module.h> 8 #include <ngx_kqueue_module.h>
8 #endif 9 #endif
27 canceled = 0; 28 canceled = 0;
28 29
29 ngx_log_debug(ev->log, "aio: ev->ready: %d" _ ev->ready); 30 ngx_log_debug(ev->log, "aio: ev->ready: %d" _ ev->ready);
30 ngx_log_debug(ev->log, "aio: aiocb: %08x" _ &ev->aiocb); 31 ngx_log_debug(ev->log, "aio: aiocb: %08x" _ &ev->aiocb);
31 32
33 #if 0
32 if (ev->timedout) { 34 if (ev->timedout) {
33 ngx_set_socket_errno(NGX_ETIMEDOUT); 35 ngx_set_socket_errno(NGX_ETIMEDOUT);
34 ngx_log_error(NGX_LOG_ERR, ev->log, 0, "aio_write() timed out"); 36 ngx_log_error(NGX_LOG_ERR, ev->log, 0, "aio_write() timed out");
35 37
36 rc = aio_cancel(c->fd, &ev->aiocb); 38 rc = aio_cancel(c->fd, &ev->aiocb);
44 46
45 canceled = 1; 47 canceled = 1;
46 48
47 ev->ready = 1; 49 ev->ready = 1;
48 } 50 }
51 #endif
49 52
50 first = 0; 53 first = 0;
51 54
52 if (!ev->ready) { 55 if (!ev->ready) {
53 ngx_memzero(&ev->aiocb, sizeof(struct aiocb)); 56 ngx_memzero(&ev->aiocb, sizeof(struct aiocb));