0
WebDAV storage client has no connect timeout
Source: nextcloud/server#67579 · opened by @susnux
Description
OC\Files\Storage\DAV (used by WebDAV/Nextcloud external storages and federated shares) creates its Sabre client without any connect timeout:
When the remote drops packets, every PROPFIND or availability check waits for the operating system's TCP connect timeout (about 2 minutes), blocking the user's requests – see #65766, where an unreachable federated remote made the whole filesystem slow.
_Found by code reading._
Proposal
Set CURLOPT_CONNECTTIMEOUT (and possibly a configurable overall timeout) on the client, in line with the timeouts used by IClient.
OC\Files\Storage\DAV (used by WebDAV/Nextcloud external storages and federated shares) creates its Sabre client without any connect timeout:
When the remote drops packets, every PROPFIND or availability check waits for the operating system's TCP connect timeout (about 2 minutes), blocking the user's requests – see #65766, where an unreachable federated remote made the whole filesystem slow.
_Found by code reading._
Proposal
Set CURLOPT_CONNECTTIMEOUT (and possibly a configurable overall timeout) on the client, in line with the timeouts used by IClient.
No pledges yet. Be the first to back this.
Comments
Similar requests
File upload freezes/delays/timeouts if there is a large count of image files. Due to Redis do all preview folder scanning.
0 votes · 0 comments
Better WebDAV-file-server module as the current one is dirt-slow
19 votes · 0 comments
Make SFTP external storage timeout configurable
0 votes · 0 comments
Add support for WebDAV SEARCH on nc:metadata-photos-original_date_time, fileId and internal id field
0 votes · 0 comments
Support for cross-domain WebDAV access (CORS)
58 votes · 0 comments
No comments yet.