Stop closing the IPC$ share every time you connect to it to get a referral.
In my use case where I am crawling a smb2 share, this resulted in 1000's of connections to IPC$ every hour.
Let these connections get cleaned up from the logoff method.
I tested this against a fairly massive distributed share and experienced no connection bloat.
perhaps it would be safer to keep these in a dfs share cache that expires if not used after n time and has a max cap of say 100 of these connections... but in my fairly massive use case it does not matter.
Stop closing the
IPC$
share every time you connect to it to get a referral.In my use case where I am crawling a smb2 share, this resulted in 1000's of connections to
IPC$
every hour.Let these connections get cleaned up from the
logoff
method.I tested this against a fairly massive distributed share and experienced no connection bloat.
perhaps it would be safer to keep these in a dfs share cache that expires if not used after
n
time and has a max cap of say 100 of these connections... but in my fairly massive use case it does not matter.