0
我正在與思科呼叫控制API(CURRI)集成。HTTP響應連接保持活動
其中一個要求是,他們會向我發送一個帶有連接保持活動標頭請求的空白請求,並且我必須響應標頭響應中的連接保持活動狀態。
我已經創建了處理請求的ashx處理程序。
Public Class Curri
Implements System.Web.IHttpHandler
Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
context.Response.AddHeader("Connection", "Keep-Alive")
context.Response.AddHeader("Keep-Alive", "timeout = 20000 max = 1000")
End Sub
ReadOnly Property IsReusable() As Boolean Implements IHttpHandler.IsReusable
Get
Return False
End Get
End Property
End Class
正如你可以看到我已經添加的連接保持活動專門響應頭。
但是,當我在Fiddler中查看時,Connection Keep Alive從響應中丟失(丟失)。有趣的是,Keep Alive超時和最大值包含在響應中。
我檢查了我的IIS並且是HTTP Keep Alive已打開。
任何人有任何想法?