views:

363

answers:

1

Hi,

is it possible to clear the pool of the current processes' UnsafeAuthenticatedConnectionSharing pool, i.e. close all authenticated pooled connections?

+1  A: 

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.
Igal Serban
Yes, the trick is to "create" a connection group (e.g. a GUID string) by using it the first time, and after having finished work, close this connection group.
Stefan Schultze