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

Add compression handling to grpc-js #381

Merged
merged 4 commits into from
May 31, 2018

Conversation

murgatroid99
Copy link
Member

This passes all of the existing tests, but I haven't added new ones. This mirrors the existing library, which also doesn't have substantial compression test coverage. In a future PR I will add the applicable compression interop tests.

let toRead: number;
while (readHead < data.length) {
switch (this.readState) {
case ReadState.NO_DATA:
this.readCompressFlag = (data.readUInt8(readHead) !== 0);
this.readCompressFlag = data.slice(readHead, readHead+1);
Copy link
Member

Choose a reason for hiding this comment

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

Very minor nit: not sure this is passing linter properly due to the +1 with no spaces around it.

@murgatroid99 murgatroid99 merged commit 49298d2 into grpc:master May 31, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Sep 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants