Skip to content

Fix bug of handle large rpc call response - #46

Open
bryanzhou wants to merge 2 commits into
EMCECS:masterfrom
bryanzhou:master
Open

bryanzhou wants to merge 2 commits into
EMCECS:masterfrom
bryanzhou:master

Conversation

@bryanzhou

@bryanzhou bryanzhou commented Oct 25, 2022

Copy link
Copy Markdown

If the response of rpc call is separate into serval fragments, will trying to hold them and merge into ONE buffer.

This bug will happen when using this client to download large files.

Here is some log when I download a file with 160MB. It has a large rpc call, and separated into 9 fragments. In old version,
_recordLength is adds up but buffer didn't hold bytes all
image

If the response of rpc call is separate into serval fragments, will trying to hold them and merge into ONE buffer.

This bug will happen when using this client to download large files.
@bryanzhou

Copy link
Copy Markdown
Author

@twincitiesguy Hello, could you review my code ? I've tested in my project, and it works right.

This branch has not been deployed

No deployments
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.

1 participant