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

refactor: try to reduce amount of http2 specific logic #2816

Closed
wants to merge 6 commits into from
Closed

Conversation

ronag
Copy link
Member

@ronag ronag commented Feb 22, 2024

This relates to...

Rationale

Changes

Features

Bug Fixes

Breaking Changes and Deprecations

Status

@ronag
Copy link
Member Author

ronag commented Feb 22, 2024

@metcoder95 can you help me figure out why this change breaks tests?

@metcoder95
Copy link
Member

Sure thing, I'll take a look; sorry for being quite slow has been busy lately 🙇

@ronag
Copy link
Member Author

ronag commented Feb 23, 2024

@metcoder95 some more changes, I think you get the gist

Copy link
Member

@metcoder95 metcoder95 left a comment

Choose a reason for hiding this comment

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

So far, the idea LGTM; I would like to see if we can scope the H2 logic even more, but we can do it in another PR, I'll check the test first 👍

lib/client.js Show resolved Hide resolved
lib/core/util.js Show resolved Hide resolved
Comment on lines +1131 to +1132
util.destroy(this, err)
util.destroy(socket, err)
Copy link
Member Author

Choose a reason for hiding this comment

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

Suggested change
util.destroy(this, err)
util.destroy(socket, err)
this.destroy(err)
socket.destroy(err)

Copy link
Member Author

Choose a reason for hiding this comment

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

etc...

ronag added a commit that referenced this pull request Feb 25, 2024
Steps towards more clean separation between h1 and h2.

Refs: #2816
@metcoder95
Copy link
Member

do you want me to wait for #2839 to land?
In that way we avoid dealing with possible conflicts; anyways we already know where the issue roots to

@ronag
Copy link
Member Author

ronag commented Feb 25, 2024

do you want me to wait for #2839 to land? In that way we avoid dealing with possible conflicts; anyways we already know where the issue roots to

Sorry for that one. Just got an idea and went with it. Hopefully didn't cause you unnecessary work.

@ronag ronag closed this Feb 26, 2024
@Uzlopak Uzlopak deleted the http2-http branch February 26, 2024 12:27
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.

None yet

2 participants