WinRb/WinRM — pull request #58 by seandilda (2013-12-19 15:37:20+00:00)
Title: Set http receive timeout to 2 minutes

I ran into a problem yesterday where I was talking to a box via winrm while the box was rebooting. Because the box went away, the normal OperationTimeout didn't kick in and my script had to wait on the HttpClient timeout, which was set for 1 hour.

Since winrm uses an OperationTimeout of 60 seconds, I've changed the HttpClient receive_timeout to be 2 minutes. This should be long enough to catch any valid response, but short enough to bomb out in a reasonable amount of time if the remote windows server disappears from the network mid-conversation.