Skip to content

feat: configurable request read timeouts#1663

Merged
0xERR0R merged 6 commits into0xERR0R:mainfrom
TheoTechnicguy:feat/custom-read-timeout
Dec 23, 2024
Merged

feat: configurable request read timeouts#1663
0xERR0R merged 6 commits into0xERR0R:mainfrom
TheoTechnicguy:feat/custom-read-timeout

Conversation

@TheoTechnicguy
Copy link
Copy Markdown
Contributor

As discussed in #1653, this pull request introduces changes to the HTTP server configuration, adding a new configuration parameter for request read timeouts, updating the HTTP server initialization to use this new parameter, and adjusting the server creation logic accordingly.

This commit adds a request read timeout configuration parameter. As it
is part of the downloading cycle, it is available under
`blocking/loading/downloads`.
The default value comes from `server/http.go` line 22.

Refs: 0xERR0R#1653
@TheoTechnicguy TheoTechnicguy marked this pull request as ready for review December 13, 2024 09:16
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.83%. Comparing base (fe84ab8) to head (3632ad2).
Report is 166 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1663      +/-   ##
==========================================
- Coverage   93.88%   93.83%   -0.05%     
==========================================
  Files          78       80       +2     
  Lines        6361     6572     +211     
==========================================
+ Hits         5972     6167     +195     
- Misses        300      320      +20     
+ Partials       89       85       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown
Owner

@0xERR0R 0xERR0R left a comment

Choose a reason for hiding this comment

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

👍

@0xERR0R 0xERR0R merged commit 0d00311 into 0xERR0R:main Dec 23, 2024
@0xERR0R 0xERR0R added the 🔨 enhancement New feature or request label Dec 23, 2024
@0xERR0R 0xERR0R added this to the v0.25 milestone Dec 23, 2024
@TheoTechnicguy TheoTechnicguy deleted the feat/custom-read-timeout branch December 27, 2024 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants