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

setBuffer returns BadArgument when called in onRequestTrailers #331

Open
michal-kopczynski opened this issue Mar 10, 2023 · 0 comments
Open

Comments

@michal-kopczynski
Copy link

We have a use case in which we buffer locally part of each body chunk and send it later, together with the following chunk. On the last chunk, we send the remaining part of previous chunk together with the whole last chunk. We do that by modifying buffer using setBuffer function.

This works fine unless the request includes trailers. In such case, last chunk is received in last invocation of onRequestBody, but there is no way to know that this is a last chunk as end_stream == false. And in onRequest/ResponseTrailers setting buffer is not possible (returns BadArgument).

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

No branches or pull requests

1 participant