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

http: Parameterize NewServeHttp #2696

Merged
merged 1 commit into from
Feb 5, 2024
Merged

http: Parameterize NewServeHttp #2696

merged 1 commit into from
Feb 5, 2024

Conversation

olix0r
Copy link
Member

@olix0r olix0r commented Feb 5, 2024

We plan to add defensive timeouts to the HTTP server to limit idle streams and connections. In preparation for this, we need to parameterize the server to accept these additonal configurations.

This change updates NewServeHttp to use an ExtractParam to build a Params struct for each server. In follow-up changes, the timeout configuration will be instrumented through this Params struct.

There are no functional changes in this commit.

We plan to add defensive timeouts to the HTTP server to limit idle streams and
connections. In preparation for this, we need to parameterize the server
to accept these additonal configurations.

This change updates NewServeHttp to use an ExtractParam to build a Params struct
for each server. In follow-up changes, the timeout configuration will be
instrumented through this Params struct.

There are no functional changes in this commit.
@olix0r olix0r requested a review from a team as a code owner February 5, 2024 22:36
Copy link

codecov bot commented Feb 5, 2024

Codecov Report

Merging #2696 (22f2302) into main (28b2d83) will increase coverage by 0.04%.
The diff coverage is 83.92%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2696      +/-   ##
==========================================
+ Coverage   67.64%   67.68%   +0.04%     
==========================================
  Files         332      332              
  Lines       15149    15158       +9     
==========================================
+ Hits        10247    10260      +13     
+ Misses       4902     4898       -4     
Files Coverage Δ
linkerd/app/admin/src/stack.rs 59.45% <100.00%> (+0.41%) ⬆️
linkerd/app/inbound/src/http/server.rs 71.42% <100.00%> (+3.00%) ⬆️
linkerd/app/outbound/src/ingress.rs 15.00% <100.00%> (+1.30%) ⬆️
linkerd/app/outbound/src/protocol.rs 70.83% <100.00%> (+2.65%) ⬆️
linkerd/proxy/http/src/lib.rs 100.00% <ø> (ø)
linkerd/proxy/http/src/server.rs 85.93% <90.90%> (+4.77%) ⬆️
linkerd/app/outbound/src/http/server.rs 62.06% <0.00%> (-4.60%) ⬇️

... and 3 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 28b2d83...22f2302. Read the comment docs.

@olix0r olix0r merged commit 96124bc into main Feb 5, 2024
21 of 23 checks passed
@olix0r olix0r deleted the ver/http-server-params branch February 5, 2024 22:59
olix0r added a commit to linkerd/linkerd2 that referenced this pull request Feb 16, 2024
---

* build(deps): bump rcgen from 0.11.3 to 0.12.0 (linkerd/linkerd2-proxy#2677)
* build(deps): bump jobserver from 0.1.26 to 0.1.27 (linkerd/linkerd2-proxy#2679)
* build(deps): bump bumpalo from 3.12.0 to 3.14.0 (linkerd/linkerd2-proxy#2678)
* outbound: Log and remove l5d-proxy-error from responses (linkerd/linkerd2-proxy#2694)
* http: Parameterize NewServeHttp (linkerd/linkerd2-proxy#2696)
* gateway: Avoid double http prefixing in metric names (linkerd/linkerd2-proxy#2701)

Signed-off-by: Oliver Gould <[email protected]>
olix0r added a commit to linkerd/linkerd2 that referenced this pull request Feb 19, 2024
---

* build(deps): bump rcgen from 0.11.3 to 0.12.0 (linkerd/linkerd2-proxy#2677)
* build(deps): bump jobserver from 0.1.26 to 0.1.27 (linkerd/linkerd2-proxy#2679)
* build(deps): bump bumpalo from 3.12.0 to 3.14.0 (linkerd/linkerd2-proxy#2678)
* outbound: Log and remove l5d-proxy-error from responses (linkerd/linkerd2-proxy#2694)
* http: Parameterize NewServeHttp (linkerd/linkerd2-proxy#2696)
* gateway: Avoid double http prefixing in metric names (linkerd/linkerd2-proxy#2701)

Signed-off-by: Oliver Gould <[email protected]>
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.

1 participant