-
Notifications
You must be signed in to change notification settings - Fork 241
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
fix special grpc metadata handling #697
Conversation
Codecov ReportBase: 89.0% // Head: 89.0% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #697 +/- ##
======================================
Coverage 89.0% 89.0%
======================================
Files 30 30
Lines 4448 4454 +6
======================================
+ Hits 3958 3964 +6
Misses 324 324
Partials 166 166
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Hi @ktalg how does the issue show up? (grpc run - missing headers in some? do you have a human visible repro?) |
I'm testing a variant with setting things only once |
…iling race on failure/simplify
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(though I'm kinda approving my own changes too so KT ptal)
@ldemailly and how about improving the name of |
yes that's a good point. will change it. code wise though, thoughts/ok? |
oh you did already, cool |
I think our changes are good enough, there's nothing more to suggest! But I seem to have violated 'DRY' in some places, and I think I should avoid these if there is a big refactoring in the future |
thx we can further cleanup in #681 (repeat in tests is somewhat fine btw) |
fix #700
There is a bug in the current handling of special grpc metadata (user-agent,host):
The MD itself is modified in the Dial method so that other threads cannot read the original MD while establishing a connection
Modifications to the MD are now moved outside of the Dial and need to be called separately when the request is sent