Skip to content

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
function onHttp2SessionGoAway (errorCode) {
// 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
@github-actions github-actions bot mentioned this pull request Mar 12, 2025
@github-actions github-actions bot mentioned this pull request May 12, 2025
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