Explorar o código

Optimize keepalive (#4352)

Most keepalive libs use only the timeout
Joan Miquel %!s(int64=6) %!d(string=hai) anos
pai
achega
efa9b3c6ae
Modificáronse 2 ficheiros con 4 adicións e 0 borrados
  1. 2 0
      frameworks/C/nginx/nginx.conf
  2. 2 0
      frameworks/PHP/php/deploy/nginx_php.conf

+ 2 - 0
frameworks/C/nginx/nginx.conf

@@ -19,6 +19,8 @@ http {
     tcp_nopush off; #default
     tcp_nodelay on; #default
     keepalive_timeout 65;
+    keepalive_disable none; #default msie6
+    keepalive_requests 300000; #default 100
 
     server {
         listen       8080 bind reuseport;

+ 2 - 0
frameworks/PHP/php/deploy/nginx_php.conf

@@ -18,6 +18,8 @@ http {
     tcp_nopush off;
     tcp_nodelay on;
     keepalive_timeout 65s;
+    keepalive_disable none;
+    keepalive_requests 300000;
 
     php_ini_path /deploy/conf/php.ini;