Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

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

Open
danports opened this issue Apr 16, 2019 · 1 comment

Comments

@danports
Copy link

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
Copy link
Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant