Eric Anderson
3fc8163fbd
okhttp: Make implicit cast explicit to declare it safe
2017-05-15 15:39:49 -07:00
Eric Anderson
cf0e161bd6
Remove unused variables
...
The removal of the poll()s is a behavior change, but the tests weren't
needing to call it.
2017-05-15 15:39:49 -07:00
Łukasz Strzałkowski
67eefa69b4
Upgrade to netty and netty-tcnative
...
* Upgrade netty to 4.1.11.Final
* Upgrade netty-tcnative to 2.0.1.Final
* Remove `FixedHttp2ConnectionDecoder` as it's no longer needed
* Use new, extensible `DefaultHttp2HeadersDecoder` for custom headers handling
2017-05-15 10:57:43 -07:00
Eric Anderson
eb6acfe186
Javadoc improvements, especially to Context
2017-05-15 10:12:44 -07:00
kenji yoshida
17b74c1452
protobuf-lite: fix typo. s/Marhsaller/Marshaller
2017-05-14 14:19:47 -07:00
ZHANG Dapeng
28ad3ba335
netty: fix server keepalive not initialized bug
...
fixes #2982
2017-05-12 09:05:21 -07:00
Carl Mastrangelo
870dd50eb2
core: clarify more origin docs for Channel
2017-05-11 17:39:30 -07:00
Carl Mastrangelo
90559c7f0a
core: add Since java doc annotations to Server, and clarify return types
2017-05-11 10:10:01 -07:00
ZHANG Dapeng
9954c5fe90
services: HealthStatusManager not to expose server stub methods
...
`HealthStatusManager` should not expose server stub methods, because it is wrong to call server stub methods directly.
2017-05-10 14:06:13 -07:00
ZHANG Dapeng
bb978bac31
doc: initiate some package javadoc
...
Initated package javadoc for
* `io.grpc.stub`,
* `io.grpc.auth`,
* `io.grpc.util`,
* `io.grpc.protobuf`,
* `io.grpc.protobuf.lite`,
* `io.grpc.protobuf.nano`
2017-05-10 11:29:07 -07:00
Eric Anderson
f4173c34ad
core,grpclb: Update addresses in OobChannel
...
This allows avoiding re-creating connections unnecessarily. For
NameResolvers that support notifications this avoids stampeding herds
when possible, since all clients may receive the notification at
approximately the same time.
2017-05-09 12:35:00 -07:00
Eric Anderson
30b61dbf4d
core: Update addresses in Subchannel
...
This allows avoiding re-creating connections unnecessarily. For
NameResolvers that support notifications this avoids stampeding herds
when possible, since all clients may receive the notification at
approximately the same time.
2017-05-09 12:35:00 -07:00
Carl Mastrangelo
1f7c9d5716
core: document ServerBuilder return values and method history
...
Also, remove an erroneously added ExperimentalApi annotation. The
method was non experimental as of the 1.0.0 release.
2017-05-05 10:34:10 -07:00
ZHANG Dapeng
5891c963e2
doc: fix broken links
2017-05-05 09:03:48 -07:00
Muxi Yan
f674776a6c
Add/Fix some docs ( #2970 )
...
* Add/Fix some docs
* Address comments
* Address comments
* Address comments
* Add remarks
* Build fixes
* Revision
* More revision
2017-05-04 10:57:49 -07:00
ZHANG Dapeng
7d048af68e
javadoc: fix broken links in javadoc
2017-05-02 16:21:43 -07:00
Eric Anderson
6418371df5
android-helloworld: Remove usage of ActionBarActivity
...
ActionBarActivity has been deprecated for 2+ years and has been
extending AppCompatActivity for all that time. This should be a no-op.
2017-05-02 11:30:24 -07:00
Eric Anderson
e6804e2a45
android-helloworld: Ignore proguard warnings for javax.naming
...
I have no clue why this isn't needed for routeguide as well, but
routeguide is compiling fine without the dontwarn.
2017-05-02 11:30:01 -07:00
Eric Gribkoff
7aa807ce6d
compiler: remove streaming calls from javadoc for newFutureStub
...
FutureStubs only support unary calls
2017-05-02 10:24:23 -07:00
Carl Mastrangelo
06e823e251
netty: reduce severity of disconnect message
2017-05-02 09:51:22 -07:00
Eric Gribkoff
df69485f44
build,protobuf: update google_api_protos dependency
2017-05-01 14:43:53 -07:00
Carl Mastrangelo
8dc29f91bb
all: bump recommended gRPC and Proto to 1.3.0 and 3.2.0
2017-04-28 13:36:21 -07:00
Xiao Hang
50a92e01dc
android-interop-testing: Support get option in interop app
2017-04-27 14:33:47 -07:00
zpencer
a317912a14
Channel.authority() should return the value of overrideAuthority ( #2956 )
...
AbstractManagedChannelImplBuilder accepts an overrideAuthority parameter, but this value is not hooked up to the name resolver object. Ultimately, Channel.authority consults with the NameResolver, so the overrideAuthority should be hooked into the NameResolverFactory, while all other functionality should be preserved.
Also, add unit tests for all the variants of OkHttpChannelBuilder and NettyChannelBuilder constructors, namely to test the slightly different NettyChannelBuilder(SocketAddress) code path.
Fixes #2682
2017-04-27 14:17:38 -07:00
ZHANG Dapeng
b2b6745868
stub: rm redundant call field in StreamObserverToCallListenerAdapter
...
All that the `call` field was used for was to call `request` and nothing else. The `request` can be done by the `adapter` field, so the `call` field is redundant.
2017-04-27 13:10:53 -07:00
Kun Zhang
0d6b4184d1
Implement GRPCLB client-side load reporting ( #2941 )
...
Also updated load_balancing.proto to the latest version.
2017-04-27 11:28:28 -07:00
Eric Anderson
982541bccc
build: fix -PerrorProne=false
...
It previously failed because of the errorprone dependency and the -Xep:
arguments passed to javac
2017-04-26 16:38:54 -07:00
Xiao Hang
de0df9740a
okhttp: Support GET in okhttp transport
2017-04-26 14:11:32 -07:00
Eric Anderson
dcc3902eb4
grpclb: remove non-determinism workaround
...
Issue #2444 is resolved.
2017-04-26 13:35:22 -07:00
Kun Zhang
be74e97b5d
core: stop using static flags for Census control. ( #2947 )
...
Static mutable flags are evil. Turned them to options on channel
builder. Also restore the local stats recording by default, because
these flags were added with the concern of wire-compatibility, but not
local feature.
2017-04-26 10:50:55 -07:00
Kun Zhang
c1a2fb412a
grpclb: expose the token metadata key. ( #2944 )
...
It is accessed by the server-side load-reporting code which is from a
different package.
2017-04-25 15:17:26 -07:00
Kun Zhang
49bde5494b
core: integrate instrumentation-java (Census) tracing ( #2938 )
...
Main implementation is in CensusTracingModule.
Also a few fix-ups in the stats implementation CensusStatsModule:
- Change header key name from grpc-census-bin to grpc-tags-bin
- Server does not fail on header parse errors. Uses the default instead.
Protect Census-based stats and tracing with static flags: `GrpcUtil.enableCensusStats` and `GrpcUtil.enableCensusTracing`. They keep those features disabled by default until they, especially their wire formats, are stabilized.
2017-04-25 13:53:29 -07:00
Fred Wulff
ba1c4bf4ac
core: Add support for the AppEngine development sandbox
2017-04-24 11:15:58 -07:00
Eric Gribkoff
b6bf252566
interop-testing: add cacheable_unary test
2017-04-21 10:22:05 -07:00
Eric Gribkoff
e36d229dc2
core,netty: remove grpc-payload-bin from GET requests
2017-04-21 10:22:05 -07:00
Eric Anderson
10dd34b0c0
grpclb: Flatten LB addresses to use pick-first
...
This has the limitation that all LB addresses must have the same
authority. Future work will try to remove that limitation.
2017-04-20 15:53:25 -07:00
Carl Mastrangelo
b7833dab05
core: lookup TXT records when doing name resolution
2017-04-20 14:11:48 -07:00
ZHANG Dapeng
e576c4cb4c
netty: more coverage on server keepalive
...
cover the missed code path of `ping` and `onPingTimeout` in `NettyServerHandler`
2017-04-20 10:38:55 -07:00
Kun Zhang
7cf35510f7
core: pass ServerCall to ServerStreamTracer. ( #2930 )
...
This is needed for GRPCLB server-side load reporting, which needs to record
the authority and peer identity.
2017-04-20 09:30:46 -07:00
Kun Zhang
a92b0488ed
core: add ServerCall.getAuthority() ( #2925 )
...
Resolves #727
2017-04-18 15:10:51 -07:00
Eric Anderson
965fe5d6e4
all: Fix basic compatibility with Mockito 2.7.19
...
We aren't upgrading yet, because we don't want to begin using the new
Mockito APIs. But all the tests now pass with the newer version. There
are a lot of warnings that can't be fixed until we bump the mockito
version.
2017-04-18 12:14:53 -07:00
ZHANG Dapeng
4989736684
core: clamp keepAliveTime/Timeout in a way easier for test
2017-04-17 15:06:25 -07:00
ZHANG Dapeng
4a96e25955
netty: implement server max connection idle
2017-04-17 14:35:22 -07:00
Eric Anderson
393ebf7cdd
netty,okhttp: handle ENHANCE_YOUR_CALM and too_many_pings
...
Any ENHANCE_YOUR_CALM is good reason to log, but too_many_pings also
triggers increase of the keepalive time for later connections.
2017-04-17 14:25:16 -07:00
Kun Zhang
6618f9739e
core: add inboundHeaders() to ClientStreamTracer. ( #2921 )
...
Also renamed headersSent to outboundHeaders
2017-04-17 14:01:34 -07:00
Kun Zhang
25658cb406
core: delete the alias LoadBalancer2. ( #2917 )
...
Resolves #2656
2017-04-14 17:12:31 -07:00
Kun Zhang
41c5aab9bc
core: record stats for GET requests ( #2914 )
...
Also define the expected call sites of StatsTraceContext.
2017-04-14 16:25:18 -07:00
Carl Mastrangelo
870ae40c8d
benchmarks: disable flag printing
2017-04-14 11:17:47 -07:00
ZHANG Dapeng
75324e9918
netty: fix flaky max connection age tests using sleepAtLeast
...
resolves #2898
2017-04-14 09:42:42 -07:00
Eric Anderson
b661ac7d73
core: Delete AbstractStream (replaced by AbstractStream2)
...
AbstractStream2 will be renamed in a later commit.
2017-04-13 16:26:56 -07:00