소스 검색

BusinessWorker必须是长链接

liangl 11 년 전
부모
커밋
6243142db3
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      workerman/conf/conf.d/BusinessWorker.conf

+ 2 - 0
workerman/conf/conf.d/BusinessWorker.conf

@@ -10,3 +10,5 @@ user = root
 preread_length = 27
 ;设置最大请求数,超过这个请求数后会安全重启该进程(主要是避免因业务代码不规范导致的内存泄露)
 max_requests=10000
+;必须是长链接
+persistent_connection = 1