pywinrm icon indicating copy to clipboard operation
pywinrm copied to clipboard

winrm.Session should allow a means to supply a timeout

Open obilodeau opened this issue 8 years ago • 3 comments

Otherwise long commands are timing out.

obilodeau avatar Feb 20 '17 17:02 obilodeau

what is the default timeout for long commands?

sandeepms avatar Mar 15 '18 12:03 sandeepms

was this updated

avisual avatar Oct 23 '18 14:10 avisual

i ran into this still, i used the following which i think helped fixed the timeouts for me.

    p = Protocol(
        endpoint=endpoint,
        transport='ntlm',
        username=self.username,
        password=self.password,
        server_cert_validation='ignore',
        operation_timeout_sec=1000,  # Set timeout to 120 seconds
        read_timeout_sec=1200  # Set read timeout to 240 seconds (greater than operation timeout)

    )

ghost-ng avatar Jun 04 '23 13:06 ghost-ng