pywinrm
pywinrm copied to clipboard
winrm.Session should allow a means to supply a timeout
Otherwise long commands are timing out.
what is the default timeout for long commands?
was this updated
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)
)