Commit Graph

762 Commits

Author SHA1 Message Date
Xiao Hang 3c79c52427 Implement timeout_on_sleeping_server test 2015-08-27 16:21:52 -07:00
Xudong Ma edbb237e84 Remove the unnecessary code example of using TLS on Anroid 2015-08-27 15:18:58 -07:00
Xudong Ma a3f2f6249e OkHttp: Fix race condition between sendCancel and sendFrame 2015-08-27 15:11:23 -07:00
Carl Mastrangelo 080190c753 Make ServerCall.Listener methods Nops 2015-08-27 13:13:42 -07:00
Xiao Hang 7fc86e5549 Implement unimplemented_method test 2015-08-27 12:56:50 -07:00
Carl Mastrangelo 5ade1b726f Make ClientCall listener methods noops 2015-08-27 11:36:59 -07:00
Nathan Mittler fc13535a8b Merge pull request #884 from nmittler/unused_method
Removing unused method in ServerImpl
2015-08-27 11:24:04 -07:00
nmittler bcdef34c52 Removing unused method in ServerImpl 2015-08-27 10:26:56 -07:00
Louis Ryan a4c821d94e Rename onValue to onNext in StreamObserver to align with the naming in Rx & the proposed Flow API in
Java9
2015-08-26 17:38:22 -07:00
nmittler 15f02ba19c Adding maxMessageSize config option
Fixes #832
2015-08-26 15:32:33 -07:00
Nathan Mittler 40c66a17a9 Merge pull request #881 from nmittler/fix_benchmarks
Fixing the benchmarks
2015-08-26 14:31:09 -07:00
nmittler d5977c4552 Fixing the benchmarks
Fixes #873
2015-08-26 13:55:39 -07:00
Carl Mastrangelo 4221f5a81c Change ExperimentalApi field 'comment' to 'value' 2015-08-26 13:40:11 -07:00
Carl Mastrangelo cb734e3049 Document equals and hashCode on Status 2015-08-26 13:31:13 -07:00
Carl Mastrangelo b5eaaf378e Add @ExperimentalApi annotation to compression methods 2015-08-26 13:25:21 -07:00
Kun Zhang 8225d2a6a6 Add comment field to ExperimentalApi 2015-08-26 10:42:08 -07:00
Carl Mastrangelo 0d9ac41bdd Minor cleanup in deframer 2015-08-26 09:58:15 -07:00
nmittler 777e928536 Removing transport shutdown hooks from channel builder
The current process of building a channel is a bit complicated in that transports have to provide a own shutdown hook to the channel builder in order to close shared executors. This somewhat entagled creation pattern makes it difficult to separate the process of channel building from transport building. Better separating these two should make the code more readable and maintainable moving forward.
2015-08-25 08:38:39 -07:00
Xudong Ma 2247ad2a2b Makes application-provided string comes first in User-Agent 2015-08-24 19:42:16 -07:00
Kun Zhang 68c82bc2f3 Make ServerImpl constructor pakcage-private 2015-08-24 15:13:25 -07:00
Xudong Ma c5ea5c78cf Update Java doc for a508c1d4f5 2015-08-24 13:49:51 -07:00
Xudong Ma 485bc9c83c OkHttp: Make sure TransportListener.transportReady() can only be called once. 2015-08-24 13:39:37 -07:00
Xudong Ma 76b410de39 Remove size restriction when parsing nano protos 2015-08-24 13:32:17 -07:00
Carl Mastrangelo 345773504c Quick work around for Rst bug 2015-08-24 11:42:35 -07:00
Carl Mastrangelo a508c1d4f5 Remove Headers 2015-08-24 11:41:10 -07:00
Xudong Ma 13c14df055 Netty: Call ClientTransport.Listener.transportReady() after receiving SETTINGS frame. 2015-08-24 10:57:05 -07:00
Kun Zhang 7b6a498eff Annotate ServerEssentials, buildEssentials() and ServerImpl's constructor with @Internal 2015-08-24 10:17:00 -07:00
Xudong Ma 37b1a8c6d9 Update the code example to use our own API 2015-08-24 09:44:46 -07:00
nmittler 0b57f56bf0 Reducing the size of the "large" proto in ProtoUtilsTest.
Hoping to eliminate flakes on Travis.

Fixes #859
2015-08-24 08:40:58 -07:00
nmittler e2f88fa904 Moving a few common utilities to GrpcUtil. 2015-08-24 07:53:32 -07:00
Xudong Ma 21f9b44d14 Use status UNAVAILABLE for IOException thrown by OkHttp reading path, which can also be triggered by HTTP/2 issues. 2015-08-21 16:42:22 -07:00
nmittler aeae7a8e74 Rename HttpUtil to GrpcUtil.
It's not really just for HTTP, it has becoming a dumping ground for many internal constants/utilities.
2015-08-21 14:02:26 -07:00
nmittler 9f7cb80108 Adding handling for stream exhaustion in Netty. 2015-08-21 13:01:17 -07:00
Kun Zhang d68c101a55 Fix documentation on ClientCall.request().
request() is allowed after halfClose(), and is not necessarily forbidden
after cancel() (current implementation does not).
2015-08-21 08:59:49 -07:00
Carl Mastrangelo 701bbe509f Add unit tests to AbstractClientStream 2015-08-20 17:14:08 -07:00
Kun Zhang 042b278256 Remove the first MethodDescriptor constructor.
that takes the service name and method name separately.

Also fix tests that are still using the old full qualified method name
format.
2015-08-20 14:19:50 -07:00
nmittler 573f79a06d Remove proto size restriction when parsing protos. 2015-08-20 14:10:49 -07:00
Carl Mastrangelo 6ebf9b1373 fix comment 2015-08-20 13:19:16 -07:00
Xudong Ma 75f71c845b Avoid deprecation warning on import 2015-08-20 09:47:03 -07:00
Kun Zhang 1a0ee96423 Improve documentation for ClientCall. 2015-08-20 09:15:23 -07:00
Kun Zhang 687a6f4814 Skip io.grpc.internal in javadoc.
Also move ExperimentalApi and Internal to io.grpc, so that they appear
in javadoc.
2015-08-20 08:48:44 -07:00
Xudong Ma b83742d61c Implement Connection Backoff Interop test. 2015-08-19 21:39:04 -07:00
Xudong Ma d2ab1c26cb OkHttp: Call ClientTransport.Listener.transportReady() after receiving settings frame. 2015-08-19 16:20:22 -07:00
Xudong Ma bfcebeaa6a Netty: Use status INTERNAL instead of UNKNOWN for underlying Http2Exception. 2015-08-19 12:53:36 -07:00
Xudong Ma 7dbca92435 Remove deprecated method. 2015-08-18 10:03:17 -07:00
Carl Mastrangelo 0b3fa8eece Remove unnecessary instanceof check 2015-08-17 15:49:33 -07:00
Carl Mastrangelo 77b00e050b Add Part 1 of compression 2015-08-17 11:32:52 -07:00
Eric Anderson e72332ce5d Add missing Generic param to Answers 2015-08-14 14:53:11 -07:00
Eric Anderson 9d1b33cae3 Remove unused variables 2015-08-14 14:53:10 -07:00
Nathan Mittler 5fe73880e7 Merge pull request #678 from nmittler/npn
Adding support for NPN fallback.
2015-08-14 14:51:42 -07:00