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

fix: ignore empty frames #22

Closed
wants to merge 1 commit into from
Closed

fix: ignore empty frames #22

wants to merge 1 commit into from

Conversation

rklaehn
Copy link
Collaborator

@rklaehn rklaehn commented Dec 21, 2022

fixes false errors being logged

fixes false errors being logged
@dignifiedquire
Copy link
Contributor

why do empty messages arrive at all?

@rklaehn
Copy link
Collaborator Author

rklaehn commented Dec 21, 2022

why do empty messages arrive at all?

I don't know. It comes from hyper is nothing you can do anything about. I have seen it frequently as the last message before a connection gets cleanly closed. Not sure if it can also happen in between valid messages.

But a rpc message will never be 0 size since even zero size messages will at least contain the type id, so it is safe to ignore them. Serialization will also fail if the result is 0 bytes.

Found some other http2 impls having issues with / producing extra empty data frames.
nodejs/node#33891

@rklaehn
Copy link
Collaborator Author

rklaehn commented Dec 21, 2022

We have merged the big PR that solves this as well.

@rklaehn rklaehn closed this Dec 21, 2022
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