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

webdav: make pacer minSleep configurable #6897

Merged
merged 1 commit into from
Mar 27, 2023
Merged

webdav: make pacer minSleep configurable #6897

merged 1 commit into from
Mar 27, 2023

Conversation

9001
Copy link
Contributor

@9001 9001 commented Mar 26, 2023

What is the purpose of this change?

This adds the config argument --webdav-pacer-min-sleep which specifies the http-request rate limit, keeping the previous default of 10ms. Reducing this value can be very beneficial when synchronizing small files.

Was the change discussed in an issue or in the forum before?

Yes; https://forum.rclone.org/t/webdav-with-persistent-connections/37024/10

Checklist

  • I have read the contribution guidelines.
  • I have added tests for all changes in this PR if appropriate.
  • I have added documentation for the changes if appropriate.
  • All commit messages are in house style.
  • I'm done, this Pull Request is ready for review :-)

the autogenerated documentation seems to cover this change appropriattely, and I believe the change is trivial enough that it doesn't need any additional tests :>

This adds the config argument --webdav-pacer-min-sleep which specifies
the http-request rate limit. Lowering this from the default 10ms can
greatly improve performance when synchronizing small files.

See: https://forum.rclone.org/t/webdav-with-persistent-connections/37024/10
@@ -43,7 +43,7 @@ import (
)

const (
minSleep = 10 * time.Millisecond
minSleep = fs.Duration(10 * time.Millisecond)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change ensures the setting is given the correct data type, as otherwise it wouldn't permit specifying the value using an ms suffix for instance.

Copy link
Member

@ncw ncw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great - thank you :-)

@ncw ncw merged commit 3f0bec2 into rclone:master Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants