Connection keep-alive not working with System.Net.Http.HttpClient on certain hosts

后端 未结 2 1120
情书的邮戳
情书的邮戳 2020-12-18 01:43

I\'m experimenting with the Heroku API using the .NET System.Net.Http.HttpClient. In particular, I want keep-alive to work so that I can send many

2条回答
  •  余生分开走
    2020-12-18 01:54

    Use WebRequestHandler class instead of HttpClientHandler and set property HttpWebRequest.UnsafeAuthenticatedConnectionSharing to True.

提交回复
热议问题