Skip to content

feat: configurable request header read timeout#1664

Merged
0xERR0R merged 4 commits into0xERR0R:mainfrom
TheoTechnicguy:feat/custom-read-header-timeout
Jan 1, 2025
Merged

feat: configurable request header read timeout#1664
0xERR0R merged 4 commits into0xERR0R:mainfrom
TheoTechnicguy:feat/custom-read-header-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 header read timeouts, updating the HTTP server initialization to use this new parameter, and adjusting the server creation logic accordingly.

This commit adds a request header 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 21.

Refs: 0xERR0R#1653
@TheoTechnicguy TheoTechnicguy marked this pull request as ready for review December 13, 2024 10:33
@TheoTechnicguy TheoTechnicguy changed the title feat: custom read header timeout feat: configurable request header read timeout Dec 13, 2024
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.80%. Comparing base (fe84ab8) to head (9a267ea).
Report is 168 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1664      +/-   ##
==========================================
- Coverage   93.88%   93.80%   -0.08%     
==========================================
  Files          78       80       +2     
  Lines        6361     6570     +209     
==========================================
+ Hits         5972     6163     +191     
- Misses        300      322      +22     
+ Partials       89       85       -4     

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

@0xERR0R 0xERR0R added the 🔨 enhancement New feature or request label Jan 1, 2025
@0xERR0R 0xERR0R added this to the v0.25 milestone Jan 1, 2025
@0xERR0R 0xERR0R merged commit 49581ff into 0xERR0R:main Jan 1, 2025
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