L81
keepalive 描述 多个http请求可以复用Tcp链接
- 减少握手次数
- 通过减少并发连接数减少服务器资源消耗
- 降低Tcp拥塞控制影响
Syntax: | keepalive_disable |
---|---|
Default: |
keepalive_disable msie6; |
Context: |
http , server , location
|
Syntax: |
|
---|---|
Default: |
keepalive_timeout 75s; |
Context: |
http , server , location
|
Syntax: | keepalive_requests |
---|---|
Default: |
keepalive_requests 100; |
Context: |
http , server , location
|