Mercurial > hg > nginx-vendor-0-8
annotate src/os/unix/ngx_socket.h @ 358:9121a0a91f47 NGINX_0_6_23
nginx 0.6.23
*) Change: the "off" parameter in the "ssl_session_cache" directive;
now this is default parameter.
*) Change: the "open_file_cache_retest" directive was renamed to the
"open_file_cache_valid".
*) Feature: the "open_file_cache_min_uses" directive.
*) Feature: the ngx_http_gzip_static_module.
*) Feature: the "gzip_disable" directive.
*) Feature: the "memcached_pass" directive may be used inside the "if"
block.
*) Bugfix: a segmentation fault occurred in worker process, if the
"memcached_pass" and "if" directives were used in the same location.
*) Bugfix: if a "satisfy_any on" directive was used and not all access
and auth modules directives were set, then other given access and
auth directives were not tested;
*) Bugfix: regex parameters in a "valid_referers" directive were not
inherited from previous level.
*) Bugfix: a "post_action" directive did run if a request was completed
with 499 status code.
*) Bugfix: optimization of 16K buffer usage in a SSL connection.
Thanks to Ben Maurer.
*) Bugfix: the STARTTLS in SMTP mode did not work.
Thanks to Oleg Motienko.
*) Bugfix: in HTTPS mode requests might fail with the "bad write retry"
error; bug appeared in 0.5.13.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 27 Dec 2007 00:00:00 +0300 |
parents | 003bd800ec2a |
children |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_SOCKET_H_INCLUDED_ | |
8 #define _NGX_SOCKET_H_INCLUDED_ | |
9 | |
10 | |
11 #include <ngx_config.h> | |
12 | |
13 | |
14 #define NGX_WRITE_SHUTDOWN SHUT_WR | |
15 | |
16 typedef int ngx_socket_t; | |
17 | |
10 | 18 #define ngx_socket socket |
0 | 19 #define ngx_socket_n "socket()" |
20 | |
21 | |
18 | 22 #if (NGX_HAVE_FIONBIO) |
0 | 23 |
24 int ngx_nonblocking(ngx_socket_t s); | |
25 int ngx_blocking(ngx_socket_t s); | |
26 | |
27 #define ngx_nonblocking_n "ioctl(FIONBIO)" | |
28 #define ngx_blocking_n "ioctl(!FIONBIO)" | |
29 | |
30 #else | |
31 | |
194 | 32 #define ngx_nonblocking(s) fcntl(s, F_SETFL, fcntl(s, F_GETFL) | O_NONBLOCK) |
0 | 33 #define ngx_nonblocking_n "fcntl(O_NONBLOCK)" |
34 | |
194 | 35 #define ngx_blocking(s) fcntl(s, F_SETFL, fcntl(s, F_GETFL) & ~O_NONBLOCK) |
36 #define ngx_blocking_n "fcntl(!O_NONBLOCK)" | |
37 | |
0 | 38 #endif |
39 | |
40 int ngx_tcp_nopush(ngx_socket_t s); | |
41 int ngx_tcp_push(ngx_socket_t s); | |
42 | |
4 | 43 #if (NGX_LINUX) |
0 | 44 |
45 #define ngx_tcp_nopush_n "setsockopt(TCP_CORK)" | |
46 #define ngx_tcp_push_n "setsockopt(!TCP_CORK)" | |
47 | |
48 #else | |
49 | |
50 #define ngx_tcp_nopush_n "setsockopt(TCP_NOPUSH)" | |
51 #define ngx_tcp_push_n "setsockopt(!TCP_NOPUSH)" | |
52 | |
53 #endif | |
54 | |
55 | |
56 #define ngx_shutdown_socket shutdown | |
57 #define ngx_shutdown_socket_n "shutdown()" | |
58 | |
59 #define ngx_close_socket close | |
14 | 60 #define ngx_close_socket_n "close() socket" |
0 | 61 |
62 | |
63 #endif /* _NGX_SOCKET_H_INCLUDED_ */ |