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

[v12.x] Disable headers timeout #33307

Closed
wants to merge 4 commits into from
Closed

[v12.x] Disable headers timeout #33307

wants to merge 4 commits into from

Conversation

ShogunPanda
Copy link
Contributor

Setting headersTimeout to 0 does not disable the checks as expected but rather makes any request fail immediately.

This PR fixes the problem. This should also be backported to 10.x.
Node 13 and 14/master are fine since headersTimeout live now in HTTPParser which correctly checks for the value being greater than 0.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added http Issues or PRs related to the http subsystem. v12.x labels May 8, 2020
@benjamingr
Copy link
Member

Hey thank you for your contribution, would you mind adding a test for this?

@ShogunPanda
Copy link
Contributor Author

Good point, I forgot. Will add it now!

@ShogunPanda
Copy link
Contributor Author

For some reason "now" became "3 days". :)
Anyway the test is there now!

Copy link
Member

@benjamingr benjamingr left a comment

Choose a reason for hiding this comment

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

LGTM

@Trott
Copy link
Member

Trott commented May 11, 2020

I'm not 100% sure about this, but I think this needs to be opened against v12.x-staging rather than v12.x. (Someone else, please confirm!) @nodejs/releasers

@targos
Copy link
Member

targos commented May 11, 2020

I'm not 100% sure about this, but I think this needs to be opened against v12.x-staging rather than v12.x. (Someone else, please confirm!) @nodejs/releasers

That's correct

@targos targos changed the title Disable headers timeout [v12.x] Disable headers timeout May 11, 2020
@ShogunPanda ShogunPanda changed the base branch from v12.x to v12.x-staging May 12, 2020 18:05
@ShogunPanda
Copy link
Contributor Author

@Trott @targos Sorry for the wrong branch. I've updated the PR to be open against v12.x-staging.

@targos
Copy link
Member

targos commented May 13, 2020

/cc @nodejs/http

@BridgeAR
Copy link
Member

@targos should this still be included in the next v12 release?

@nodejs/http @nodejs/http2 @nodejs/streams PTAL

@nodejs-github-bot
Copy link
Collaborator

@mcollina
Copy link
Member

I hope it would be included.

targos pushed a commit that referenced this pull request May 25, 2020
PR-URL: #33307
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
@targos
Copy link
Member

targos commented May 25, 2020

Landed in ebd9090. Thanks @ShogunPanda

@targos targos closed this May 25, 2020
@ShogunPanda ShogunPanda deleted the disable-headers-timeout branch May 25, 2020 13:48
richardlau pushed a commit that referenced this pull request Jul 2, 2020
PR-URL: #33307
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
http Issues or PRs related to the http subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants