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: extract listenHandlers and one bugfix #3722

Merged
merged 5 commits into from
Oct 13, 2024
Merged

Conversation

Uzlopak
Copy link
Contributor

@Uzlopak Uzlopak commented Oct 12, 2024

No description provided.

@Uzlopak Uzlopak requested a review from metcoder95 October 12, 2024 08:21
// We cannot recover, so best to close the session and the socket
const err = this[kError] || new SocketError(`HTTP/2: "GOAWAY" frame received with code ${code}`, util.getSocketInfo(this))
const err = this[kError] || new SocketError(`HTTP/2: "GOAWAY" frame received with code ${errorCode}`, util.getSocketInfo(this[kSocket]))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

here we have a Http2Session, so we have to pass this[kSocket] to getSocketInfo

closed = true
})
socket[kClosed] = false
socket.on('close', onSocketClose)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess there is a reason to use nodes own event handler and not undicis one?

Copy link
Member

Choose a reason for hiding this comment

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

Not on top of my mind, feel free to change it to the undici's one 👍

closed = true
})
socket[kClosed] = false
socket.on('close', onSocketClose)
Copy link
Member

Choose a reason for hiding this comment

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

Not on top of my mind, feel free to change it to the undici's one 👍

@Uzlopak Uzlopak merged commit e8c3aba into main Oct 13, 2024
38 checks passed
@Uzlopak Uzlopak deleted the minor-http2-changes branch October 13, 2024 15:47
@github-actions github-actions bot mentioned this pull request Dec 3, 2024
This was referenced Dec 16, 2024
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.

2 participants