nginx学习随笔--keepalive_timeout

来源:互联网 发布:linux count 命令 编辑:程序博客网 时间:2024/05/16 14:58

nginx学习随笔–keepalive_timeout

英文原文:

Syntax: keepalive_timeout timeout [header_timeout];Default:    keepalive_timeout 75s;Context:    http, server, location

The first parameter sets a timeout during which a keep-alive client connection will stay open on the server side. The zero value disables keep-alive client connections. The optional second parameter sets a value in the “Keep-Alive: timeout=time” response header field. Two parameters may differ.

The “Keep-Alive: timeout=time” header field is recognized by Mozilla and Konqueror. MSIE closes keep-alive connections by itself in about 60 seconds.

中文翻译:
第一个参数设置客户端保持和服务器长连接不断开的超时时间。如果值为0,就是不允许长连接。第二个参数是在相应头部中“Keep_Alive:timeout=time”设置值。两个参数是不一样的。
“Keep_Alive:timeout=time”头部可以被Mozilla 和 Konqueror识别。MSIE在大约60秒左右自己关闭长连接。

原创粉丝点击