ngx_conf_init_msec_value(kcf->timeout, 60000);//初始化kcf->timeout,即keepalive_timeout 120s的值 ngx_conf_init_uint_value(kcf->requests, 100);//初始化kcf->requests,即keepalive_requests 100的值 } 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 第二步:初始化空闲长连接队列,用于存储空闲的...
* Set KeepAlive=60, Multiplier=1.5: the check is done every 30s, so connection will be disconnected between 90-120s after the last packet receive. Accurate, but costly: * Set KepAlive=2, Multiplier=30: the check is done every 1s, so it can be disconnected between 60-61s after the ...