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

Allow client to disable sending of trailers by omitting "TE" header. #1709

Closed
johanbrandhorst opened this issue Oct 1, 2020 · 7 comments · Fixed by #2124
Closed

Allow client to disable sending of trailers by omitting "TE" header. #1709

johanbrandhorst opened this issue Oct 1, 2020 · 7 comments · Fixed by #2124

Comments

@johanbrandhorst
Copy link
Collaborator

🐛 Bug Report

We shouldn't send trailers unless the client sends the "TE" trailer.

See #1697 for more context

@anthonydevelops
Copy link

@johanbrandhorst can I take on this issue?

@johanbrandhorst
Copy link
Collaborator Author

Absolutely! Please do.

@anthonydevelops
Copy link

@johanbrandhorst Seems someone has begun working on this already with a draft PR, so I'll go ahead and un-assign myself for now. Thanks for the opportunity though! I'll try tackling the next one I feel confident enough to do. 👍

@anthonydevelops anthonydevelops removed their assignment Oct 6, 2020
@johanbrandhorst
Copy link
Collaborator Author

I think #1709 is actually trying to solve #1697, so this one is still up for grabs!

@ghost
Copy link

ghost commented Oct 7, 2020

Edit (swapped mistake for tip):
Maybe this will help (https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go#L158-179 )

@johanbrandhorst
Copy link
Collaborator Author

The handling of the "TE" trailer is only present in the error handler, not the normal path (see https://github.com/grpc-ecosystem/grpc-gateway/blob/v2/runtime/handler.go#L166). I'm not sure what you're trying to say but you're not fixing this case in your PR.

@ghost
Copy link

ghost commented Oct 7, 2020

@johanbrandhorst My mistake.
Comment has been edited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants