瀏覽代碼

Optimize keepalive (#4352)

Most keepalive libs use only the timeout
Joan Miquel 6 年之前
父節點
當前提交
efa9b3c6ae
共有 2 個文件被更改,包括 4 次插入0 次删除
  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;