Mercurial > hg > nginx-quic
annotate conf/fastcgi_params @ 3293:8abb88374c6c
Fix a bug introduced in r2032: After a child process has read a terminate
message from a channel, the process tries to read the channel again.
The kernel (at least FreeBSD) may preempt the process and sends a SIGIO
signal to a master process. The master process sends a new terminate message,
the kernel switches again to the the child process, and the child process
reads the messages instead of an EAGAIN error. And this may repeat over
and over. Being that the child process can not exit the cycle and test
the termination flag set by the message handler.
The fix disallow the master process to send a new terminate message on
SIGIO signal reception. It may send the message only on SIGALARM signal.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 04 Nov 2009 19:41:08 +0000 |
parents | badefafbf7f3 |
children | 352a7b025f2e |
rev | line source |
---|---|
537 | 1 |
2 fastcgi_param QUERY_STRING $query_string; | |
3 fastcgi_param REQUEST_METHOD $request_method; | |
4 fastcgi_param CONTENT_TYPE $content_type; | |
5 fastcgi_param CONTENT_LENGTH $content_length; | |
6 | |
7 fastcgi_param SCRIPT_NAME $fastcgi_script_name; | |
8 fastcgi_param REQUEST_URI $request_uri; | |
9 fastcgi_param DOCUMENT_URI $document_uri; | |
10 fastcgi_param DOCUMENT_ROOT $document_root; | |
11 fastcgi_param SERVER_PROTOCOL $server_protocol; | |
12 | |
13 fastcgi_param GATEWAY_INTERFACE CGI/1.1; | |
1330 | 14 fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; |
537 | 15 |
16 fastcgi_param REMOTE_ADDR $remote_addr; | |
17 fastcgi_param REMOTE_PORT $remote_port; | |
18 fastcgi_param SERVER_ADDR $server_addr; | |
19 fastcgi_param SERVER_PORT $server_port; | |
20 fastcgi_param SERVER_NAME $server_name; | |
21 | |
22 # PHP only, required if PHP was built with --enable-force-cgi-redirect | |
23 fastcgi_param REDIRECT_STATUS 200; |