IIS不应该发送Keep

编程入门 行业动态 更新时间:2024-10-27 02:29:20
本文介绍了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 / Protocols / rfc2616 / rfc2616-sec8.html#sec8

In HTTP/1.1 persistent connections are the default: www.w3/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工具: technet.microsoft/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: technet.microsoft/en-us/sysinternals/bb897437.aspx)

更多推荐

IIS不应该发送Keep

本文发布于:2023-10-11 04:38:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1480707.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:IIS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!