Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 客户端或服务器端的ServicePointManager.DefaultConnectionLimit?_.net_Asp.net_Http - Fatal编程技术网

.net 客户端或服务器端的ServicePointManager.DefaultConnectionLimit?

.net 客户端或服务器端的ServicePointManager.DefaultConnectionLimit?,.net,asp.net,http,.net,Asp.net,Http,ServicePointManager.DefaultConnectionLimit(“属性”)是否控制传出连接或传入连接 我有一个ASP.NET应用程序,在其中我在global.asax中指定启动时的属性。 例如,我将其设置为100,但我发现可以有200个并发连接。这些是进入IAsyncHttpHandler的异步请求 有人能解释一下这个属性吗?ServicePointManager与ASP.NET无关。其DefaultConnectionLimit可用于设置连接到URI时允许的传出连接数(例

ServicePointManager.DefaultConnectionLimit(“属性”)是否控制传出连接或传入连接

我有一个ASP.NET应用程序,在其中我在global.asax中指定启动时的属性。 例如,我将其设置为100,但我发现可以有200个并发连接。这些是进入IAsyncHttpHandler的异步请求


有人能解释一下这个属性吗?

ServicePointManager
与ASP.NET无关。其
DefaultConnectionLimit
可用于设置连接到URI时允许的传出连接数(例如,使用
WebRequest
WebClient

它只适用于特定的主机。因此,如果将其设置为100,则意味着您可以有100个到
http://stackoverflow.com
和另外100个到
http://svick.org