问题描述
我在IIS 7.5设置中启用了HTTP keep-alive。
但是,IIS仍然不响应连接:保持活动
标题(对于FF和Chrome)
I've enabled "HTTP keep-alive" in IIS 7.5 settings.But still, the IIS doesn't respond with Connection: keep-alive
header (to both FF and Chrome)
正如我所注意到的,当我启用keep-alive时,Nginx会响应这个标题。
As I noticed, Nginx responds with this header when I enable keep-alive on it.
不应该连接:服务器响应请求发送保留活动
标头?
推荐答案
在HTTP / 1.1持久性中连接是默认值:
In HTTP/1.1 persistent connections are the default:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html#sec8
换句话说,IIS并不是真的需要(不过Apache似乎总是发送它。)
In other words, IIS doesn't really need to (however Apache seems to always send it).
您可以使用netstat验证这一点,或者我倾向于使用tcpview(一个可以从microsoft下载的小型sysinternals工具:
)
You could verify this with netstat or as I tend to do with tcpview (a small sysinternals tool which you can download from microsoft:http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx)
这篇关于IIS不应该发送Keep-Alive标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!