IIS不应该发送Keep-Alive标头 [英] Shouldn't the IIS send Keep-Alive header

查看:491
本文介绍了IIS不应该发送Keep-Alive标头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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持久性中连接是默认值:

http:// www .w3.org / Protocols / rfc2616 / rfc2616-sec8.html#sec8

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工具:
http://technet.microsoft.com/en-us/sysinternals/bb897437。一个spx

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标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆