Mercurial > hg > nginx-vendor-0-5
annotate src/os/unix/ngx_channel.h @ 24:420dd3f9e703 NGINX_0_1_12
nginx 0.1.12
*) Feature: the %request_length log parameter.
*) Bugfix: when using the /dev/poll, select and poll on the platforms,
where these methods may do the false reports, there may be the long
delay when the request was passed via the keep-alive connection. It
may be at least on Solaris when using the /dev/poll.
*) Bugfix: the send_lowat directive is ignored on Linux because Linux
does not support the SO_SNDLOWAT option.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 06 Dec 2004 00:00:00 +0300 |
parents | f0b350454894 |
children | 45945fa8b8ba |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_CHANNEL_H_INCLUDED_ | |
8 #define _NGX_CHANNEL_H_INCLUDED_ | |
9 | |
10 | |
11 #include <ngx_config.h> | |
12 #include <ngx_core.h> | |
13 #include <ngx_event.h> | |
14 | |
15 | |
16 typedef struct { | |
17 ngx_uint_t command; | |
18 ngx_pid_t pid; | |
19 ngx_int_t slot; | |
20 ngx_fd_t fd; | |
21 } ngx_channel_t; | |
22 | |
23 | |
24 ngx_int_t ngx_write_channel(ngx_socket_t s, ngx_channel_t *ch, size_t size, | |
25 ngx_log_t *log); | |
26 ngx_int_t ngx_read_channel(ngx_socket_t s, ngx_channel_t *ch, size_t size, | |
27 ngx_log_t *log); | |
28 ngx_int_t ngx_add_channel_event(ngx_cycle_t *cycle, ngx_fd_t fd, | |
29 ngx_int_t event, ngx_event_handler_pt handler); | |
30 void ngx_close_channel(ngx_fd_t *fd, ngx_log_t *log); | |
31 | |
32 | |
33 #endif /* _NGX_CHANNEL_H_INCLUDED_ */ |