psl-omi-provider icon indicating copy to clipboard operation
psl-omi-provider copied to clipboard

Intermittent hangs while establishing a WinRM connection from a Linux client to a Windows server

Open danports opened this issue 5 years ago • 1 comments

I'm trying to track down a hang that occurs intermittently but reliably (about 10-20% of the time) while connecting from a Linux client to a Windows server. When the connection is attempted, WinRM might not yet be running and/or the credentials we're trying to use might not yet be working, but instead of throwing an exception, the client simply hangs (forever, even if the server is shut down).

I've tried enabling OMI client logging, but strangely, when I set the log level to INFO or higher, the problem disappears, which makes me suspect a race condition either in this library or libmi. When the log level is left at the default value (WARNING), none of the OMI log files reference the server which the client is hanging trying to connect to, presumably because the connection handshake didn't progress far enough before it hung.

Can you give me any suggestions as to how I can capture additional details that will help us to track down the issue here?

danports avatar Apr 16 '19 22:04 danports

Hmm...after reviewing similar issues like #34 and #108, I'm thinking that I may need to read through the codebase and look for similar async callback omissions in other failure edge cases.

danports avatar Apr 19 '19 23:04 danports