Mercurial > hg > nginx-vendor-0-8
annotate src/os/unix/ngx_socket.h @ 130:82d695e3d662 NGINX_0_3_12
nginx 0.3.12
*) Security: if nginx was built with the ngx_http_realip_module and the
"satisfy_any on" directive was used, then access and authorization
directives did not work. The ngx_http_realip_module was not built
and is not built by default.
*) Change: the "$time_gmt" variable name was changed to "$time_local".
*) Change: the "proxy_header_buffer_size" and
"fastcgi_header_buffer_size" directives was renamed to the
"proxy_buffer_size" and "fastcgi_buffer_size" directives.
*) Feature: the ngx_http_memcached_module.
*) Feature: the "proxy_buffering" directive.
*) Bugfix: the changes in accept mutex handling when the "rtsig" method
was used; bug appeared in 0.3.0.
*) Bugfix: if the client sent the "Transfer-Encoding: chunked" header
line, then nginx returns the 411 error.
*) Bugfix: if the "auth_basic" directive was inherited from the http
level, then the realm in the "WWW-Authenticate" header line was
without the "Basic realm" text.
*) Bugfix: if the "combined" format was explicitly specified in the
"access_log" directive, then the empty lines was written to the log;
bug appeared in 0.3.8.
*) Bugfix: nginx did not run on the sparc platform under any OS except
Solaris.
*) Bugfix: now it is not necessary to place space between the quoted
string and closing bracket in the "if" directive.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Sat, 26 Nov 2005 00:00:00 +0300 |
parents | 6f8b0dc0f8dd |
children | 003bd800ec2a |
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 | |
32 #define ngx_nonblocking(s) fcntl(s, F_SETFL, O_NONBLOCK) | |
33 #define ngx_nonblocking_n "fcntl(O_NONBLOCK)" | |
34 | |
35 #endif | |
36 | |
37 int ngx_tcp_nopush(ngx_socket_t s); | |
38 int ngx_tcp_push(ngx_socket_t s); | |
39 | |
4 | 40 #if (NGX_LINUX) |
0 | 41 |
42 #define ngx_tcp_nopush_n "setsockopt(TCP_CORK)" | |
43 #define ngx_tcp_push_n "setsockopt(!TCP_CORK)" | |
44 | |
45 #else | |
46 | |
47 #define ngx_tcp_nopush_n "setsockopt(TCP_NOPUSH)" | |
48 #define ngx_tcp_push_n "setsockopt(!TCP_NOPUSH)" | |
49 | |
50 #endif | |
51 | |
52 | |
53 #define ngx_shutdown_socket shutdown | |
54 #define ngx_shutdown_socket_n "shutdown()" | |
55 | |
56 #define ngx_close_socket close | |
14 | 57 #define ngx_close_socket_n "close() socket" |
0 | 58 |
59 | |
60 #endif /* _NGX_SOCKET_H_INCLUDED_ */ |