开发者

Control over connection used in HttpWebRequest

开发者 https://www.devze.com 2023-01-28 05:36 出处:网络
Is it possible to have any sort of control over the connection used for a HttpWebRequest?I use the BindIPEndPointDelegate property to set the IP to bind the request to.However I want to have 5 keep-al

Is it possible to have any sort of control over the connection used for a HttpWebRequest? I use the BindIPEndPointDelegate property to set the IP to bind the request to. However I want to have 5 keep-alive c开发者_如何学Goonnections that get round-robined through that all use different IPs.

Or is there some sort of way I could contextualize/compartmentalize the connections so that I can say "use this keep-alive connection" specifically?


It looks like setting the ConnectionGroupName property on the HttpWebRequests pools the connections keyed on that string.

0

精彩评论

暂无评论...
验证码 换一张
取 消