grpc-java/okhttp
Kun Zhang 83b92cfc9f
core: pass transport attributes to ClientStreamTracer.Factory.newClientStreamTracer() (#5380)
This will be a new override.  The old override is now deprecated.

In order to pass new information without adding new overrides, I shoved most information
into an object called StreamInfo.  The Metadata is left out to draw attention because
it's mutable.

Motivation: this is needed for correctly supporting pick_first in GRPCLB.  GRPCLB needs to
add a token to the headers, and the token varies among servers.  With round_robin, GRPCLB
create a Subchannel for each server, thus can attach the token when the Subchannel is picked.
To implement pick_first, all server addresses will be put in a single Subchannel, we will
need to add the header in newClientStreamTracer(), by looking up the server address from
the transport attributes and deciding which token to add.
2019-02-21 11:13:51 -08:00
..
src core: pass transport attributes to ClientStreamTracer.Factory.newClientStreamTracer() (#5380) 2019-02-21 11:13:51 -08:00
third_party/okhttp all: remove java6 type args 2019-02-04 10:03:50 -08:00
BUILD.bazel Add missing j2objc dependency to Bazel build 2018-11-13 13:39:35 -08:00
build.gradle okhttp: use java 7, avoid compiler varargs warning (#4806) 2018-08-28 11:53:15 -07:00