HttpListenerTimeoutsElement.IdleConnection 屬性

定義

取得 time, in seconds, allowed for an idle connection.

public:
 property TimeSpan IdleConnection { TimeSpan get(); };
[System.Configuration.ConfigurationProperty("idleConnection", DefaultValue=0, IsRequired=false)]
public TimeSpan IdleConnection { get; }
[<System.Configuration.ConfigurationProperty("idleConnection", DefaultValue=0, IsRequired=false)>]
member this.IdleConnection : TimeSpan
Public ReadOnly Property IdleConnection As TimeSpan

屬性值

閒置連接的允許時間,以秒為單位。

屬性

備註

只有在連線上的第一個要求路由傳送至 HttpListener之後,才會強制執行此逾時。

在剖析標頭之前,系統無法判斷要求相關聯的要求佇列或 URL 群組。 因此,會在 HttpListener 連線上針對第一個要求強制執行預設 IdleConnection 定時器。 Keep-Alive 連線上的後續要求將會使用此屬性上設定的值。

適用於

另請參閱