Mercurial > hg > nginx-vendor-current
annotate src/os/unix/ngx_socket.h @ 482:392c16f2d858 NGINX_0_7_53
nginx 0.7.53
*) Change: now a log set by --error-log-path is created from the very
start-up.
*) Feature: now the start up errors and warnings are outputted to an
error_log and stderr.
*) Feature: the empty --prefix= configure parameter forces nginx to use
a directory where it was run as prefix.
*) Feature: the -p switch.
*) Feature: the -s switch on Unix platforms.
*) Feature: the -? and -h switches.
Thanks to Jerome Loyet.
*) Feature: now switches may be set in condensed form.
*) Bugfix: nginx/Windows did not work if configuration file was given
by the -c switch.
*) Bugfix: temporary files might be not removed if the "proxy_store",
"fastcgi_store", "proxy_cache", or "fastcgi_cache" were used.
Thanks to Maxim Dounin.
*) Bugfix: an incorrect value was passed to mail proxy authentication
server in "Auth-Method" header line; the bug had appeared
in 0.7.34.
Thanks to Simon Lecaille.
*) Bugfix: system error text descriptions were not logged on Linux;
the bug had appeared in 0.7.45.
*) Bugfix: the "fastcgi_cache_min_uses" directive did not work.
Thanks to Andrew Vorobyoff.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 27 Apr 2009 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_ */ |