Mercurial > hg > nginx-ranges
annotate src/os/unix/ngx_socket.h @ 290:f745bf973510 NGINX_0_5_15
nginx 0.5.15
*) Feature: the mail proxy supports authenticated SMTP proxying and the
"smtp_auth", "smtp_capablities", and "xclient" directives.
Thanks to Anton Yuzhaninov and Maxim Dounin.
*) Feature: now the keep-alive connections are closed just after
receiving the reconfiguration signal.
*) Change: the "imap" and "auth" directives were renamed to the "mail"
and "pop3_auth" directives.
*) Bugfix: a segmentation fault occurred in worker process if the
CRAM-MD5 authentication method was used and the APOP method was
disabled.
*) Bugfix: if the "starttls only" directive was used in POP3 protocol,
then nginx allowed authentication without switching to the SSL mode.
*) Bugfix: worker processes did not exit after reconfiguration and did
not rotate logs if the eventport method was used.
*) Bugfix: a worker process may got caught in an endless loop, if the
"ip_hash" directive was used.
*) Bugfix: now nginx does not log some alerts if eventport or /dev/poll
methods are used.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 19 Mar 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_ */ |