Mercurial > hg > nginx-vendor-1-0
comparison src/event/ngx_event.h @ 16:74b1868dd3cd NGINX_0_1_8
nginx 0.1.8
*) Bugfix: in the ngx_http_autoindex_module if the long file names were
in the listing.
*) Feature: the "^~" modifier in the location directive.
*) Feature: the proxy_max_temp_file_size directive.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Sat, 20 Nov 2004 00:00:00 +0300 |
parents | 46833bd150cb |
children | 6f8b0dc0f8dd |
comparison
equal
deleted
inserted
replaced
15:0503cb60c4e4 | 16:74b1868dd3cd |
---|---|
494 #include <ngx_iocp_module.h> | 494 #include <ngx_iocp_module.h> |
495 #endif | 495 #endif |
496 | 496 |
497 | 497 |
498 | 498 |
499 ngx_inline static int ngx_handle_read_event(ngx_event_t *rev, u_int flags) | 499 static ngx_inline ngx_int_t ngx_handle_read_event(ngx_event_t *rev, u_int flags) |
500 { | 500 { |
501 if (ngx_event_flags & NGX_USE_CLEAR_EVENT) { | 501 if (ngx_event_flags & NGX_USE_CLEAR_EVENT) { |
502 | 502 |
503 /* kqueue, epoll */ | 503 /* kqueue, epoll */ |
504 | 504 |
538 | 538 |
539 return NGX_OK; | 539 return NGX_OK; |
540 } | 540 } |
541 | 541 |
542 | 542 |
543 ngx_inline static int ngx_handle_level_read_event(ngx_event_t *rev) | 543 static ngx_inline ngx_int_t ngx_handle_level_read_event(ngx_event_t *rev) |
544 { | 544 { |
545 if (ngx_event_flags & NGX_USE_LEVEL_EVENT) { | 545 if (ngx_event_flags & NGX_USE_LEVEL_EVENT) { |
546 if (!rev->active && !rev->ready) { | 546 if (!rev->active && !rev->ready) { |
547 if (ngx_add_event(rev, NGX_READ_EVENT, NGX_LEVEL_EVENT) | 547 if (ngx_add_event(rev, NGX_READ_EVENT, NGX_LEVEL_EVENT) |
548 == NGX_ERROR) | 548 == NGX_ERROR) |
564 | 564 |
565 return NGX_OK; | 565 return NGX_OK; |
566 } | 566 } |
567 | 567 |
568 | 568 |
569 ngx_inline static int ngx_handle_write_event(ngx_event_t *wev, size_t lowat) | 569 static ngx_inline ngx_int_t ngx_handle_write_event(ngx_event_t *wev, |
570 size_t lowat) | |
570 { | 571 { |
571 ngx_connection_t *c; | 572 ngx_connection_t *c; |
572 | 573 |
573 if (lowat) { | 574 if (lowat) { |
574 c = (ngx_connection_t *) wev->data; | 575 c = (ngx_connection_t *) wev->data; |
620 | 621 |
621 return NGX_OK; | 622 return NGX_OK; |
622 } | 623 } |
623 | 624 |
624 | 625 |
625 ngx_inline static int ngx_handle_level_write_event(ngx_event_t *wev) | 626 static ngx_inline ngx_int_t ngx_handle_level_write_event(ngx_event_t *wev) |
626 { | 627 { |
627 if (ngx_event_flags & NGX_USE_LEVEL_EVENT) { | 628 if (ngx_event_flags & NGX_USE_LEVEL_EVENT) { |
628 if (!wev->active && !wev->ready) { | 629 if (!wev->active && !wev->ready) { |
629 if (ngx_add_event(wev, NGX_WRITE_EVENT, NGX_LEVEL_EVENT) | 630 if (ngx_add_event(wev, NGX_WRITE_EVENT, NGX_LEVEL_EVENT) |
630 == NGX_ERROR) | 631 == NGX_ERROR) |