小编ET.*_*ET.的帖子

HttpWebRequest.KeepAlive与ServicePoint.SetTcpKeepAlive

假设我有HttpWebRequest对象“ request”,谁能解释以下示例代码的区别/含义?

request.KeepAlive = true;
request.ServicePoint.SetTcpKeepAlive(true, 1000, 5000);
Run Code Online (Sandbox Code Playgroud)

在上面的示例中,我都将其设置为True。如果我将一个设为True,另一个设为False怎么办?这意味着什么?

.net c# httpwebrequest

0
推荐指数
1
解决办法
3454
查看次数

标签 统计

.net ×1

c# ×1

httpwebrequest ×1