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

Don't update capabilities concurrently from same host. #833

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

fancycode
Copy link
Member

If capabilities are expired and requested from multiple clients concurrently, this could cause concurrent (duplicate) requests to the same Nextcloud host. With this change, only a single request is sent to Nextcloud in such cases.

Fixes #832

@nickvergessen FYI

@fancycode fancycode force-pushed the concurrent-capabilities branch from 8f1ec78 to 5067fb6 Compare October 9, 2024 13:30
If capabilities are expired and requested from multiple clients concurrently,
this could cause concurrent (duplicate) requests to the same Nextcloud host.
With this change, only a single request is sent to Nextcloud in such cases.
@fancycode fancycode force-pushed the concurrent-capabilities branch from 5067fb6 to 147fb23 Compare October 9, 2024 13:37
@coveralls
Copy link

Pull Request Test Coverage Report for Build 11256166952

Details

  • 53 of 63 (84.13%) changed or added relevant lines in 1 file are covered.
  • 8 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.04%) to 58.447%

Changes Missing Coverage Covered Lines Changed/Added Lines %
capabilities.go 53 63 84.13%
Files with Coverage Reduction New Missed Lines %
grpc_client.go 1 79.0%
client.go 7 73.41%
Totals Coverage Status
Change from base Build 11223362951: 0.04%
Covered Lines: 10590
Relevant Lines: 18119

💛 - Coveralls

@fancycode fancycode merged commit 7b62d84 into master Oct 9, 2024
22 of 23 checks passed
@fancycode fancycode deleted the concurrent-capabilities branch October 9, 2024 13:48
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.

Prevent concurrent capability updates
2 participants