Mercurial > hg > nginx-vendor-current
annotate src/os/unix/ngx_socket.h @ 634:23ef0645ea57 NGINX_1_1_1
nginx 1.1.1
*) Change: now cache loader processes either as many files as specified
by "loader_files" parameter or works no more than time specified by
"loader_threshold" parameter during each iteration.
*) Change: now SIGWINCH signal works only in deamon mode.
*) Feature: now shared zones and caches use POSIX semaphores on
Solaris.
Thanks to Den Ivanov.
*) Feature: accept filters are now supported on NetBSD.
*) Bugfix: nginx could not be build on Linux 3.0.
*) Bugfix: nginx did not use gzipping in some cases; the bug had
appeared in 1.1.0.
*) Bugfix: request body might be incorrectly processed if client used
pipelining.
*) Bugfix: in the "request_body_in_single_buf" directive.
*) Bugfix: in "proxy_set_body" and "proxy_pass_request_body" directives
if SSL connection to backend was used.
*) Bugfix: nginx hogged CPU if all servers in an upstream were marked
as "down".
*) Bugfix: a segmentation fault might occur during reconfiguration if
ssl_session_cache was defined but not used in a previous
configuration.
*) Bugfix: a segmentation fault might occur in a worker process if many
backup servers were used in an upstream.
*) Bugfix: a segmentation fault might occur in a worker process if
"fastcgi/scgi/uwsgi_param" directives were used with values starting
with "HTTP_"; the bug had appeared in 0.8.40.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 22 Aug 2011 00:00:00 +0400 |
parents | 003bd800ec2a |
children | d0f7a625f27c |
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_ */ |