Skip to content

SmbConnection.Dispose() lock exception #6

@AMeyerInkSoft

Description

@AMeyerInkSoft

The SmbConnection.Dispose() method locks a static s_connectionLock object. Process dumps of poorly performing apps indicate a bunch of threads waiting on this critical section. We might need to implement some sort of mechanism for disposal time limits or some other means of limiting time in this critical section so other disposals aren't held up behind it indefinitely.

Process Dump shows this exception on the lock (s_connectionLock) line.

System.IO.IOException
HResult=0x80131620
Message=STATUS_IO_TIMEOUT
This exception was originally thrown at this call stack:
InkSoft.SmbAbstraction.NtStatusExtensions.AssertSuccess(SMBLibrary.NTStatus) in NTStatusExtensions.cs
InkSoft.SmbAbstraction.SmbFile.Exists(string) in SmbFile.cs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions