连接完成后,ngnix不closures套接字。 我GOOGLE了,不能拿出任何东西来告诉nginxclosures这个连接,除了我下面的:keepalive_timeout 0。
在请求和响应头文件中,我可以看到Connection:close,但是socket仍然处于TIME_WAIT状态大约一分钟。
tcp 0 0 127.0.0.1:80 127.0.0.1:40345 TIME_WAIT –
这是标题:
Request Headers:Connection:close Content-Type:application / x-www-form-urlencoded
响应标头:HTTP / 1.1 200 OK服务器:nginx / 0.7.67date:2011年4月21日星期四15:34:31 GMT内容types:text / xml; charset = utf-8传输编码:分块连接:closures
我的nginxconfiguration的一部分:
nginxconfiguration文件:{… keepalive_timeout 0; client_max_body_size 1M; fastcgi_read_timeout 60; fastcgi_send_timeout 60;
location ~ \.php$ { fastcgi_pass unix:/tmp/php-fastcgi.sock; #fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_intercept_errors on; # to support 404s for PHP files not found fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; fastcgi_param SERVER_NAME $host; }
}
在TIME_WAIT状态下等待几分钟是由devise,请检查以下链接的完整说明:
http://developerweb.net/viewtopic.php?id=2941 http://www.ssfnet.org/Exchange/tcp/tcpTutorialNotes.html