Commit Graph

948 Commits

Author SHA1 Message Date
Carl Mastrangelo d42a09b0e4 Add authority work around for OkHttp channels 2015-10-07 15:04:49 -07:00
Eric Anderson a61beefc06 Update documentation for CGM, in light of jre8u60
JRE 8u60 is still slow, but could be used by someone that doesn't care
about performance now. Added more details about relative performance so
that the gains of OpenSSL are clear.

Added detail about version independence, because JRE 8u60 requires an
update to Jetty ALPN, so it is also applicable to this change.
2015-10-07 14:22:27 -07:00
nmittler 6e04c3100e Adding consistent exception handling for Netty
NettyClientHandler currently handles non-HTTP/2 exceptions properly by forcing a shutdown of the connection.  We need to do the server-side as well.

Fixes #1097
2015-10-05 11:46:50 -07:00
Carl Mastrangelo 2d067edf85 Allow host authority override. 2015-10-02 11:00:43 -07:00
Kun Zhang bb113ad721 Use timeout when verifying setDecompressionRegistry()
because setDecompressionRegistry() could be called from a different
thread than the test thread.
2015-10-01 17:35:04 -07:00
Kun Zhang be400d3ea8 Stub mockTransport.newStream() to prevent NPE. 2015-10-01 16:16:35 -07:00
Eric Anderson a99e97791f Have OpenSSL v1.0.2 available to unit tests 2015-10-01 15:27:18 -07:00
Kun Zhang 89288465c4 Prepare channel layer for upcoming load-balancing changes.
- ListenableFutures of transports, instead of actual transports, are
  passed through multiple layers to ClientCallImpl, so that name
  resolution and load-balancing, which may delay the creation of
  transports, won't block the creation of ClientCall. This also
  simplifies reconnect logic.
- Moved Transport management for a single address to a separate class
  TransportSet. Later, ManagedChannelImpl will own multiple
  TransportSets instead of one.
- ClientCallImpl will buffer requests in DelayedStream until transport
  is ready.
2015-09-29 18:49:38 -07:00
Eric Anderson 9ea70ad29c Update README to reference 0.9.0 2015-09-29 17:57:33 -07:00
Xudong Ma 400926e4e8 [Android-interop-test] Support non-tls test and replace a deprecated API call 2015-09-29 13:53:30 -07:00
Carl Mastrangelo 70cdf76212 adjust other usages in protocol negotiators 2015-09-29 10:57:23 -07:00
Carl Mastrangelo 75e291f062 docs 2015-09-29 10:48:24 -07:00
Carl Mastrangelo cb317c736c Update to share versions 2015-09-29 10:42:12 -07:00
Carl Mastrangelo ff19d90bb8 Force http2 connection when using tls 2015-09-29 10:38:26 -07:00
Eric Anderson 2a98c2eee9 Replace broken link in example 2015-09-28 14:43:36 -07:00
Carl Mastrangelo 46c18ea237 Move decompressor setting down into the AbstractStream 2015-09-28 10:25:58 -07:00
Xudong Ma f7f57b79c9 Put nano generated code into nano package, unless option javanano_use_deprecated_package is set.
Also fix the behaior while java_package is set to empty.
2015-09-28 09:49:02 -07:00
Xudong Ma f15f672b79 Correct the order of arguments. 2015-09-25 17:36:06 -07:00
Nathan Mittler d7cdcc6199 Merge pull request #1071 from nmittler/flaky_test
Fixing flaky test Http2NettyTest.deadlineExceeded()
2015-09-25 10:40:41 -07:00
nmittler 7c2ff632cd Fixing flaky test Http2NettyTest.deadlineExceeded()
This test occasionally flakes due to the way the deadline timer cancels the stream. Stream cancellation immediately closes the outbound status, disallowing the sending of further messages.  The true cancellation is done sometime later in the transport thread in Netty. So there is a race between closing the outbound status and performing the actual cancellation where sent messages will fail with the wrong status.
2015-09-24 16:22:46 -07:00
Eric Anderson d04994f044 Update Windows building instructions for proto3b1 2015-09-24 15:50:28 -07:00
Xudong Ma ea4eed57b9 Reduce memory usage in test. 2015-09-24 15:06:35 -07:00
Nathan Mittler 5fc954bf04 Merge pull request #1069 from nmittler/readme
Adding homepage and mailing list to the README
2015-09-24 12:59:08 -07:00
nmittler b7a72c1618 Adding homepage and mailing list to the README 2015-09-24 12:32:45 -07:00
nmittler f0d95798f8 Updating Netty to send a single SETTINGS frame.
Fixes #1059
2015-09-24 10:42:57 -07:00
nmittler e13d1dc3f5 Fixing benchmarks. 2015-09-24 10:18:24 -07:00
Carl Mastrangelo 70fbd6735a Remove unused function in netty test 2015-09-23 15:15:31 -07:00
Carl Mastrangelo bfd74506fe Remove Netty test that fails with upstream 2015-09-23 13:47:33 -07:00
Éamonn McManus 9e690f8ddf Make io.grpc.Status.STATUS_LIST be static final, not just static. 2015-09-21 11:02:19 -07:00
Xudong Ma 75624bba24 Remove unused protos. 2015-09-18 16:30:42 -07:00
Carl Mastrangelo 5dad18c54b Pass decompressor registry around and make it less static 2015-09-18 12:47:41 -07:00
nmittler b82ac3166a Fixing fedora classifier on master branch. 2015-09-18 12:30:19 -07:00
Xudong Ma 2016a88f5c Update the comments in proguard-rules files. 2015-09-17 18:17:32 -07:00
Eric Anderson 551323f93e classifierWithLikes breaks protobuf-gradle-plugin
It causes it to try to download protoc with _fedora in its classifier.
2015-09-17 15:54:28 -07:00
Eric Anderson 9987aa28a3 Remove javatutorial; it duplicates grpc.io website
It is hard to keep the two in sync.
http://www.grpc.io/docs/tutorials/basic/java.html
2015-09-17 14:53:46 -07:00
Xudong Ma 57ebf8aaf3 Update Android example. 2015-09-17 14:18:48 -07:00
Eric Anderson 4cc103ac6a Mark Status*Exception.getStatus() final
This further limits our API.
2015-09-17 14:10:53 -07:00
Carl Mastrangelo 4572b197e0 Add a message accept encoding header 2015-09-17 12:30:04 -07:00
nmittler c4bcf14f46 Updating tcnative and osdetector 2015-09-16 15:20:15 -07:00
Carl Mastrangelo b24aa53d13 Merge branch 'changelog' 2015-09-16 15:12:16 -07:00
Carl Mastrangelo f3a5811fbf Add a Changes document to keep track of release notes 2015-09-16 15:02:38 -07:00
Eric Anderson d823d356a3 Change version to 0.10.0-SNAPSHOT
We aren't 100% certain the next release is 1.0, so swap to a more
conservative number for snapshots.
2015-09-16 14:06:44 -07:00
Artem Prigoda 24c398ed1c Upgrade maven-os-plugin in README
Upgrade `os-maven-plugin` to 1.4.0, which fixes a bug with
running in Intellij IDEA with a bundled Maven version (3.0.5).

See https://github.com/trustin/os-maven-plugin/issues/5
2015-09-16 22:52:26 +03:00
Eric Anderson 1e1d53b78f Fix test checking for invalid content type
Previously, if the content type was being ignored the error code would
have been UNKNOWN since there was no grpc-status. That seems very to
accidentally pass, so now if the content type is ignored it would get
OK.
2015-09-16 10:00:08 -07:00
Xudong Ma 47ad6f81bf Fix the double-closure of server call for interop tests. 2015-09-15 16:40:59 -07:00
Eric Anderson efa774b846 Checkstyle shouldn't rely on current directory 2015-09-15 10:34:14 -07:00
Eric Anderson 6e0651643e Mark more server-side pieces experimental
You can't make an interceptor without calling ServerCallHandler, so it
is now marked experimental.
2015-09-14 15:24:24 -07:00
Eric Anderson 491a98afc5 Restrict more of the API: Metadata, ServerCall, Status 2015-09-14 15:24:22 -07:00
Carl Mastrangelo 4b27e542e0 Don't let server start if already shutting down 2015-09-14 11:39:28 -07:00
Jerjou Cheng 45c75f2c96 Fix broken tutorial link. 2015-09-14 09:18:06 -07:00