Clear the HttpWebRequest UnsafeAuthenticatedConnectionSharing Pool
-
22-07-2019 - |
Question
is it possible to clear the pool of the current processes' UnsafeAuthenticatedConnectionSharing pool, i.e. close all authenticated pooled connections?
Solution
Have not tried it. But somthing like ( typed directly so watch for errors):
MyReq.ServicePoint.CloseConnectionGroup(null)
will do the trick.
Note:
- there is no pool. There is a reuse of one open connection.
- It is not something I used or tried. Its from my understanding of the documentation.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow