comparison src/os/unix/ngx_socket.c @ 236:c982febb7588 NGINX_0_4_3

nginx 0.4.3 *) Change: now the 499 error could not be redirected using an "error_page" directive. *) Feature: the Solaris 10 event ports support. *) Feature: the ngx_http_browser_module. *) Bugfix: a segmentation fault may occur while redirecting the 400 error to the proxied server using an "proxy_pass" directive. *) Bugfix: a segmentation fault occurred if an unix domain socket was used in an "proxy_pass" directive; bug appeared in 0.3.47. *) Bugfix: SSI did work with memcached and nonbuffered responses. *) Workaround: of the Sun Studio PAUSE hardware capability bug.
author Igor Sysoev <http://sysoev.ru>
date Tue, 26 Sep 2006 00:00:00 +0400
parents 003bd800ec2a
children 5bef04fc3fd5
comparison
equal deleted inserted replaced
235:f622c719b711 236:c982febb7588
7 #include <ngx_config.h> 7 #include <ngx_config.h>
8 #include <ngx_core.h> 8 #include <ngx_core.h>
9 9
10 10
11 /* 11 /*
12 * ioctl(FIONBIO) sets a blocking mode with the single syscall 12 * ioctl(FIONBIO) sets a non-blocking mode with the single syscall
13 * while fcntl(F_SETFL, !O_NONBLOCK) needs to learn before 13 * while fcntl(F_SETFL, O_NONBLOCK) needs to learn the current state
14 * the previous state using fcntl(F_GETFL). 14 * using fcntl(F_GETFL).
15 * 15 *
16 * ioctl() and fcntl() are syscalls at least in FreeBSD 2.x, Linux 2.2 16 * ioctl() and fcntl() are syscalls at least in FreeBSD 2.x, Linux 2.2
17 * and Solaris 7. 17 * and Solaris 7.
18 * 18 *
19 * ioctl() in Linux 2.4 and 2.6 uses BKL, however, fcntl(F_SETFL) uses it too. 19 * ioctl() in Linux 2.4 and 2.6 uses BKL, however, fcntl(F_SETFL) uses it too.