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

http2: fix no response event on continue request #41739

Merged
merged 4 commits into from
Feb 3, 2022

Conversation

ofirbarak
Copy link
Contributor

@ofirbarak ofirbarak commented Jan 29, 2022

When sending a continue request, server response with null, but it does not fires the response event type

Fixes: #38258
Ref: #38561

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/http2
  • @nodejs/net

@nodejs-github-bot nodejs-github-bot added http2 Issues or PRs related to the http2 subsystem. needs-ci PRs that need a full CI run. labels Jan 29, 2022
@benjamingr
Copy link
Member

Hey @ofirbarak thanks for tackling this, I am not sure the fix is quite correct - I see there are some relevant test failures?

@benjamingr benjamingr added the request-ci Add this label to start a Jenkins CI on a PR. label Jan 29, 2022
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 29, 2022
@nodejs-github-bot
Copy link
Collaborator

Copy link
Member

@mcollina mcollina 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
Trott previously requested changes Jan 30, 2022
Copy link
Member

@Trott Trott left a comment

Choose a reason for hiding this comment

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

Welcome, @ofirbarak and thanks for this pull request as well! As with the other one, please change the start of the first commit message from lib: to http2:. Thanks!

If another collaborator wants to land this before that change, feel free to dismiss this review but please change the commit message while landing. Thanks!

ofir added 4 commits January 30, 2022 15:22
When sending a continue request, server response with null,
it does not fires the response event type

Fixes: nodejs#38258
@ofirbarak ofirbarak changed the title lib: fix no response event on null in continue request http2: fix no response event on null in continue request Jan 30, 2022
@ofirbarak ofirbarak changed the title http2: fix no response event on null in continue request http2: fix no response event on continue request Jan 30, 2022
@mcollina
Copy link
Member

@jasnell could you take a look before we land?

@Trott Trott dismissed their stale review January 30, 2022 15:45

commit message updated

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@mcollina mcollina added commit-queue Add this label to land a pull request using GitHub Actions. and removed needs-ci PRs that need a full CI run. labels Feb 3, 2022
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Feb 3, 2022
@nodejs-github-bot
Copy link
Collaborator

Commit Queue failed
- Loading data for nodejs/node/pull/41739
✔  Done loading data for nodejs/node/pull/41739
----------------------------------- PR info ------------------------------------
Title      http2: fix no response event on continue request (#41739)
   ⚠  Could not retrieve the email or name of the PR author's from user's GitHub profile!
Branch     ofirbarak:http2-null-response -> nodejs:master
Labels     http2
Commits    4
 - http2: fix no response event on continue request
 - fix liniting issues
 - correct the fix
 - simplify condition
Committers 1
 - ofir 
PR-URL: https://github.com/nodejs/node/pull/41739
Fixes: https://github.com/nodejs/node/issues/38258
Refs: https://github.com/nodejs/node/pull/38561
Reviewed-By: Benjamin Gruenbaum 
Reviewed-By: Matteo Collina 
Reviewed-By: James M Snell 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/41739
Fixes: https://github.com/nodejs/node/issues/38258
Refs: https://github.com/nodejs/node/pull/38561
Reviewed-By: Benjamin Gruenbaum 
Reviewed-By: Matteo Collina 
Reviewed-By: James M Snell 
--------------------------------------------------------------------------------
   ℹ  This PR was created on Sat, 29 Jan 2022 00:22:36 GMT
   ✔  Approvals: 3
   ✔  - Benjamin Gruenbaum (@benjamingr): https://github.com/nodejs/node/pull/41739#pullrequestreview-866996187
   ✔  - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/41739#pullrequestreview-867008165
   ✔  - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/41739#pullrequestreview-871911901
   ⚠  GitHub cannot link the author of 'http2: fix no response event on continue request' to their GitHub account.
   ⚠  Please suggest them to take a look at https://github.com/nodejs/node/blob/99b1ada/doc/guides/contributing/pull-requests.md#step-1-fork
   ⚠  GitHub cannot link the author of 'fix liniting issues' to their GitHub account.
   ⚠  Please suggest them to take a look at https://github.com/nodejs/node/blob/99b1ada/doc/guides/contributing/pull-requests.md#step-1-fork
   ⚠  GitHub cannot link the author of 'correct the fix' to their GitHub account.
   ⚠  Please suggest them to take a look at https://github.com/nodejs/node/blob/99b1ada/doc/guides/contributing/pull-requests.md#step-1-fork
   ⚠  GitHub cannot link the author of 'simplify condition' to their GitHub account.
   ⚠  Please suggest them to take a look at https://github.com/nodejs/node/blob/99b1ada/doc/guides/contributing/pull-requests.md#step-1-fork
   ✔  Last GitHub CI successful
   ℹ  Last Full PR CI on 2022-02-03T09:48:20Z: https://ci.nodejs.org/job/node-test-pull-request/42332/
- Querying data for job/node-test-pull-request/42332/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  No git cherry-pick in progress
   ✔  No git am in progress
   ✔  No git rebase in progress
--------------------------------------------------------------------------------
- Bringing origin/master up to date...
From https://github.com/nodejs/node
 * branch                  master     -> FETCH_HEAD
✔  origin/master is now up-to-date
- Downloading patch for 41739
From https://github.com/nodejs/node
 * branch                  refs/pull/41739/merge -> FETCH_HEAD
✔  Fetched commits as 28989b4103d7..91db9b4d8b22
--------------------------------------------------------------------------------
[master 69c13726d0] http2: fix no response event on continue request
 Author: ofir 
 Date: Sat Jan 29 02:14:00 2022 +0200
 2 files changed, 98 insertions(+), 55 deletions(-)
 rewrite test/parallel/test-http2-compat-expect-continue.js (85%)
[master a05210f0c0] fix liniting issues
 Author: ofir 
 Date: Sat Jan 29 03:11:06 2022 +0200
 2 files changed, 2 insertions(+), 2 deletions(-)
[master 9168f2a135] correct the fix
 Author: ofir 
 Date: Sat Jan 29 13:39:06 2022 +0200
 2 files changed, 4 insertions(+), 4 deletions(-)
[master 02e3fa3a4e] simplify condition
 Author: ofir 
 Date: Sun Jan 30 15:22:04 2022 +0200
 1 file changed, 1 insertion(+), 4 deletions(-)
   ✔  Patches applied
There are 4 commits in the PR. Attempting autorebase.
Rebasing (2/8)

Executing: git node land --amend --yes
⚠ Found Fixes: #38258, skipping..
--------------------------------- New Message ----------------------------------
http2: fix no response event on continue request

When sending a continue request, server response with null,
it does not fires the response event type

Fixes: #38258

PR-URL: #41739
Refs: #38561
Reviewed-By: Benjamin Gruenbaum [email protected]
Reviewed-By: Matteo Collina [email protected]
Reviewed-By: James M Snell [email protected]

[detached HEAD 2c9b0aaa0b] http2: fix no response event on continue request
Author: ofir [email protected]
Date: Sat Jan 29 02:14:00 2022 +0200
2 files changed, 98 insertions(+), 55 deletions(-)
rewrite test/parallel/test-http2-compat-expect-continue.js (85%)
Rebasing (3/8)
Rebasing (4/8)

Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
fix liniting issues

PR-URL: #41739
Fixes: #38258
Refs: #38561
Reviewed-By: Benjamin Gruenbaum [email protected]
Reviewed-By: Matteo Collina [email protected]
Reviewed-By: James M Snell [email protected]

[detached HEAD 4ba5dec622] fix liniting issues
Author: ofir [email protected]
Date: Sat Jan 29 03:11:06 2022 +0200
2 files changed, 2 insertions(+), 2 deletions(-)
Rebasing (5/8)
Rebasing (6/8)

Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
correct the fix

PR-URL: #41739
Fixes: #38258
Refs: #38561
Reviewed-By: Benjamin Gruenbaum [email protected]
Reviewed-By: Matteo Collina [email protected]
Reviewed-By: James M Snell [email protected]

[detached HEAD bdf250b737] correct the fix
Author: ofir [email protected]
Date: Sat Jan 29 13:39:06 2022 +0200
2 files changed, 4 insertions(+), 4 deletions(-)
Rebasing (7/8)
Rebasing (8/8)

Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
simplify condition

PR-URL: #41739
Fixes: #38258
Refs: #38561
Reviewed-By: Benjamin Gruenbaum [email protected]
Reviewed-By: Matteo Collina [email protected]
Reviewed-By: James M Snell [email protected]

[detached HEAD c33f61e577] simplify condition
Author: ofir [email protected]
Date: Sun Jan 30 15:22:04 2022 +0200
1 file changed, 1 insertion(+), 4 deletions(-)

Successfully rebased and updated refs/heads/master.

ℹ Use --fixupAll option, squash the PR manually or land the PR from the command line.

https://github.com/nodejs/node/actions/runs/1789949374

@nodejs-github-bot nodejs-github-bot added the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Feb 3, 2022
@benjamingr benjamingr removed the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Feb 3, 2022
@benjamingr benjamingr added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Feb 3, 2022
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Feb 3, 2022
@nodejs-github-bot nodejs-github-bot merged commit be6844d into nodejs:master Feb 3, 2022
@nodejs-github-bot
Copy link
Collaborator

Landed in be6844d

@benjamingr
Copy link
Member

Congrats on your first contribution to Node core @ofirbarak 🎉

@ofirbarak
Copy link
Contributor Author

Thank you!

VoltrexKeyva pushed a commit to VoltrexKeyva/node that referenced this pull request Feb 3, 2022
When sending a continue request, server response with null,
it does not fires the response event type

Fixes: nodejs#38258

PR-URL: nodejs#41739
Refs: nodejs#38561
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: James M Snell <[email protected]>
ruyadorno pushed a commit that referenced this pull request Feb 8, 2022
When sending a continue request, server response with null,
it does not fires the response event type

Fixes: #38258

PR-URL: #41739
Refs: #38561
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: James M Snell <[email protected]>
danielleadams pushed a commit that referenced this pull request Mar 2, 2022
When sending a continue request, server response with null,
it does not fires the response event type

Fixes: #38258

PR-URL: #41739
Refs: #38561
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: James M Snell <[email protected]>
danielleadams pushed a commit that referenced this pull request Mar 3, 2022
When sending a continue request, server response with null,
it does not fires the response event type

Fixes: #38258

PR-URL: #41739
Refs: #38561
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: James M Snell <[email protected]>
danielleadams pushed a commit to danielleadams/node that referenced this pull request Mar 4, 2022
When sending a continue request, server response with null,
it does not fires the response event type

Fixes: nodejs#38258

PR-URL: nodejs#41739
Refs: nodejs#38561
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: James M Snell <[email protected]>
danielleadams pushed a commit to danielleadams/node that referenced this pull request Mar 4, 2022
When sending a continue request, server response with null,
it does not fires the response event type

Fixes: nodejs#38258

PR-URL: nodejs#41739
Refs: nodejs#38561
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: James M Snell <[email protected]>
danielleadams pushed a commit that referenced this pull request Mar 8, 2022
When sending a continue request, server response with null,
it does not fires the response event type

Fixes: #38258

PR-URL: #41739
Refs: #38561
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: James M Snell <[email protected]>
danielleadams pushed a commit that referenced this pull request Mar 14, 2022
When sending a continue request, server response with null,
it does not fires the response event type

Fixes: #38258

PR-URL: #41739
Refs: #38561
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. http2 Issues or PRs related to the http2 subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

http2: Only first headers cause an event in http2 stream, all following headers are muted.
7 participants