Skip to content

backend: enforce that backend HTTP requests make progress#4792

Merged
MichaelEischer merged 4 commits intomasterfrom
request-watchdog
May 9, 2024
Merged

backend: enforce that backend HTTP requests make progress#4792
MichaelEischer merged 4 commits intomasterfrom
request-watchdog

Conversation

@MichaelEischer
Copy link
Copy Markdown
Member

@MichaelEischer MichaelEischer commented May 1, 2024

What does this PR change? What problem does it solve?

Implements http.Request based timeouts for connections proposed in #4193 (comment) .

Was the change previously discussed in an issue or on the forum?

Fixes #4193.
Part of #4627 .
Depends on #4605.
Replaces #4778

Checklist

  • I have read the contribution guidelines.
  • I have enabled maintainer edits.
  • I have added tests for all code changes.
  • [ ] I have added documentation for relevant changes (in the manual).
  • There's a new file in changelog/unreleased/ that describes the changes for our users (see template).
  • I have run gofmt on the code in all commits.
  • All commit messages are formatted in the same style as the other commits in the repo.
  • I'm done! This pull request is ready for review.

@MichaelEischer MichaelEischer changed the title backend: enforce backend HTTP requests make progress backend: enforce that backend HTTP requests make progress May 9, 2024
This should detect a connection that is stuck for more than 2 minutes.
requests that make no upload or download progress within a timeout are
canceled.
Copy link
Copy Markdown
Member Author

@MichaelEischer MichaelEischer left a comment

Choose a reason for hiding this comment

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

LGTM.

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

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

Set timeouts for backend connections

1 participant