Skip to content
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

Set timeout from input #67

Closed
fnattino opened this issue Jun 5, 2020 · 3 comments
Closed

Set timeout from input #67

fnattino opened this issue Jun 5, 2020 · 3 comments
Assignees
Milestone

Comments

@fnattino
Copy link

fnattino commented Jun 5, 2020

Hello! I am using webdav-client-python-3 to talk to a WebDAV server - it's working really great! However, the hardcoded timeout value of 30 sec used in the HTTP requests is too short for my use case. Would it be possible to add the time out value as an optional setting to initialise the client? Thanks in advance!

@ezhov-evgeny ezhov-evgeny self-assigned this Jun 6, 2020
@ezhov-evgeny ezhov-evgeny added this to the 3.14.4 milestone Jun 6, 2020
@ezhov-evgeny ezhov-evgeny modified the milestones: 3.14.4, 3.14.5 Jun 7, 2020
@ezhov-evgeny
Copy link
Owner

Published

@ezhov-evgeny
Copy link
Owner

@fnattino For configuring a requests timeout you can use an option webdav_timeout with int value in seconds, by default the timeout is set to 30 seconds.

from webdav3.client import Client

options = {
 'webdav_hostname': "https://webdav.server.ru",
 'webdav_login':    "login",
 'webdav_password': "password",
 'webdav_timeout': 30
}
client = Client(options)

@fnattino
Copy link
Author

fnattino commented Jun 9, 2020

@ezhov-evgeny Thanks a lot for the very fast reaction, that is really great!

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

No branches or pull requests

2 participants