How can I disable HTTP Keep-Alive in ASP.NET MVC?

前端 未结 4 618
青春惊慌失措
青春惊慌失措 2021-01-05 04:48

Is there a way to tell IIS/ASP.NET not to allow Keep-Alive for certain requests? Or even for an entire website, if that\'s really the only way to go about it?

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-05 05:09

    HTTP Keep-Alives are enabled by default in IIS 6.0, which complies with the HTTP/1.1 specification for HTTP Keep-Alives. IIS holds open an inactive connection for as long as the ConnectionTimeout metabase property specifies (the default value is 120 seconds).

    You can disable HTTP Keep Alive by following below link, it is for enabling you would have to do reverse to disable.

    http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/d7e13ea5-4350-497e-ba34-b25c0e9efd68.mspx?mfr=true

提交回复
热议问题