Skip to content

Conversation

@tanmaykm
Copy link
Member

@tanmaykm tanmaykm commented Aug 3, 2021

Some gRPC servers and proxies may need to be presented with a te header. In gRPC trailers are always allowed in the protocol, but we encountered a scenario (#15) where the Python gRPC server implementation insists on it being specified explicitly.

This PR sets the TE header to trailers by default in every request.

fixes #15

Some gRPC servers and proxies may need to be presented with a [`te` header](https://datatracker.ietf.org/doc/html/rfc7230#section-4.3). In gRPC trailers are always allowed in the protocol, but we encountered a scenario (#15) where the Python gRPC server implementation insists on it being [specified explicitly](https://nghttp2.org/blog/2015/03/24/proxying-grpc-with-nghttpx/).

This PR sets the TE header to `trailers` by default in every request.
@codecov-commenter
Copy link

codecov-commenter commented Aug 3, 2021

Codecov Report

Merging #17 (0398fc1) into main (2c5e0b1) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #17      +/-   ##
==========================================
+ Coverage   95.25%   95.27%   +0.01%     
==========================================
  Files           5        5              
  Lines         274      275       +1     
==========================================
+ Hits          261      262       +1     
  Misses         13       13              
Impacted Files Coverage Δ
src/curl.jl 95.80% <100.00%> (+0.02%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2c5e0b1...0398fc1. Read the comment docs.

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.

gRPCServiceCallException: 0 when trying to connect with Python grpc server

3 participants