-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
copy()
timeout
#182
Comments
There is no way to currently do so, you can configure the socket timeouts like a connection and read timeout but it will continue to write to the file during that time. |
I don't think I understand. How? |
When you create the client you specify it through the kwargs from pypsrp.client import Client
with Client("server", connection_timeout=30, read_timeout=30) as client:
client.copy(...) The kwargs here are passed through to the Lines 109 to 132 in d2a3eca
read_timeout , then operation_timeout should also be set to something that is lower than it.
Remember that this won't set the global timeout for the operation, there is no way to do so right now. This only configures the timeout it takes to connect to the host and the time in which it will wait for a response on any WSMan request sent during this process. |
Hi,
In our code, we're copying a file to a remote machine using
pypsrp.Client.copy
:pypsrp/src/pypsrp/client.py
Lines 69 to 94 in d2a3eca
There seems to be no way to set a timeout for the operation. Is there some way to do this that I'm missing or is this not a feature that's implemented yet?
The text was updated successfully, but these errors were encountered: