Commit Graph

6498 Commits

Author SHA1 Message Date
nmittler 6407c18578 Default client connection window to 1MiB. 2015-03-24 10:29:20 -07:00
nmittler ab9f82756a Making connection and stream windows configurable for Netty. 2015-03-24 10:14:55 -07:00
Eric Anderson a3b353ce54 Disable Travis parallel building to reduce memory usage
We were seeing errors on Travis like:
> Process 'Gradle Test Executor 2' finished with non-zero exit value 137

That doesn't make much sense, other than maybe the OOM killer killing
our processes. Turning off parallel execution seemed to fix the problem,
so we'll just assume memory was the actual problem and doing fewer
things in parallel reduces our maximum memory usage.

Travis documentation seems to agree with that being a likely cause:
http://docs.travis-ci.com/user/common-build-problems/#My-build-script-is-killed-without-any-error
2015-03-24 09:56:19 -07:00
Eric Anderson 2cbbd4706a Split large payload into separate test with higher timeout
Also show more exception info in case the test still fails.
2015-03-23 12:06:03 -07:00
Eric Anderson d8fb6f0bad Use TLS for Netty integration tests 2015-03-23 09:25:05 -07:00
Eric Anderson bcb3e8cef4 Remove readlink -f in run-test*.sh scripts
readlink -f allows the script to be run via a symlink yet still
function.  However, OS X doesn't have the -f flag. We don't really care
too much about symlinking to the scripts, so just drop readlink -f.
2015-03-23 09:23:41 -07:00
Eric Anderson b1201e7c3e Enable parallel Gradle builds for Travis
Parallel doesn't mix well with deployment, so if that becomes part of
Travis, we would need to pass -Dorg.gradle.parallel=false to the gradle
command line. But otherwise parallel builds have been solid.
2015-03-23 09:16:41 -07:00
Eric Anderson 26141b445d Allow checkstyle failures fatal, and fix last issues
Failing disabled by default, but setting checkstyle.ignoreFailures=false
in ~/.gradle/gradle.properties enables failing. Travis will always run
with such failing enabled.
2015-03-23 09:10:53 -07:00
Thomas ten Cate 9175d9d79e Fix data corruption issue receiving payloads > 2kB
Also add OkHttpReadableBuffer unit test, and increase the test string
length to expose the bug.

Also use array equality assertions in the base test, instead of
comparisons whose return value is discarded.

Fixes #231.
2015-03-22 13:14:57 +01:00
Eric Anderson 7865b031e1 okhttp: code style fix; handle exception
For code style, we either need a comment describing why an exception is
ignored or to actually handle the exception. In this case there doesn't
seem to be a strong reason to ignore the exception, but it isn't all
that important either, so just log at INFO.
2015-03-21 09:12:30 -07:00
Xudong Ma 79ef04bc91 Fix a race condition in the test, we may nitify MockFrameReader to return before it satrts waiting.
This commit fixes #223
2015-03-21 23:01:06 +08:00
Nobuaki Sukegawa c569379c20 Update grpc-common and grpc-java url 2015-03-21 22:45:40 +09:00
Eric Anderson 2f3c173179 Protobuf java/nano are now on Maven Central 2015-03-20 14:50:10 -07:00
Eric Anderson a0acb9b9a8 Working Travis build, with caching of deps 2015-03-20 14:27:32 -07:00
Louis Ryan c42c8c420d Basic travis configuration 2015-03-20 11:37:30 -07:00
Eric Anderson a6edc294fc Improve Status exception message
When the description is null, the exception message would be in the form
of "INTERNAL: null", which isn't very attractive, and makes it seem like
an error in itself. If the description is null, just use "INTERNAL".
2015-03-20 10:29:11 -07:00
Eric Anderson 78cde0ddc0 Move Status.toString next to other methods 2015-03-20 09:47:34 -07:00
Xudong Ma 3db92977fa Add missing @RunWith. 2015-03-18 11:22:49 +08:00
Eric Anderson f38c2a06d9 Add missing copyright headers 2015-03-16 22:11:10 -07:00
Eric Anderson 69cef51ac2 Improve CONTRIBUTING.md 2015-03-16 22:09:48 -07:00
Xudong Ma 7c6b627170 Close frame reader and notify the listener in reader thread, to avoid reading after reader is closed. 2015-03-17 08:04:07 +08:00
nmittler 23972a25b9 Adding outbound flow control API for the transport API 2015-03-16 14:17:03 -07:00
nmittler 9f5614501d Adding outbound flow control API for Call/ServerCall 2015-03-16 12:59:15 -07:00
Eric Anderson 040007ec17 Add package statement to HttpUtilTest 2015-03-16 12:38:07 -07:00
Eric Anderson 3fb77ad42d Remove reference to Netty 5
grpc-java now depends on Netty 4.1. Simply removing the version doesn't seem to reduce the doc's usefulness but also prevents needing to update it as much.
2015-03-16 12:35:18 -07:00
Eric Anderson c3e8dae6ce Add checkstyle checking
The checkstyle.xml is a slightly modified version of the upstream Google
checkstyle configuration. All changes have comment describing them.

Lots of warnings were corrected. Examples is the only project that has
warnings still, as the necessary changes require some thought.
2015-03-16 10:53:13 -07:00
Eric Anderson c5bcbc62fe Handle spaces in shell script 2015-03-13 15:26:45 -07:00
Jakob Buchgraber 54c31b0325 Fix compile error introduced by previous commit 2015-03-13 15:12:40 -07:00
Louis Ryan 3f7325ecf5 Allow switching between Netty 4 & 5 by restricting to intersection of interfaces 2015-03-13 14:57:55 -07:00
Jakob Buchgraber 0076243063 Add WritableBuffer interface for zero copy data writes. Fixes #8
WritableBuffer is a generic interface that allows to transfer data
from gRPC directly to the native transport's buffer implementation.
2015-03-13 13:00:44 -07:00
Louis Ryan ee19f066c4 Add new readme for Auth related issues 2015-03-12 17:38:48 -07:00
Eric Anderson 76d0955a6e Clean up warnings
-Xlint:-options is not available on some earlier JDK 7s, but won't fail
if unsupported. It prevents the warning wanting bootclasspath specified
since target/source is 1.6.
2015-03-12 17:37:32 -07:00
Eric Anderson 7e8a02ce63 Add name and developers to pom
These are required by OSSRH.
2015-03-12 17:25:27 -07:00
Louis Ryan 767a12cc3e Switch to use new leaner auth library for OAuth interceptor 2015-03-12 16:18:25 -07:00
Louis Ryan 1216de6262 Add support to Netty builders for other channel types. Demonstrate and test use of this with local channels 2015-03-12 16:05:33 -07:00
nmittler 89cb2d1774 Updating to latest Netty for frame logger optimizations. 2015-03-12 14:25:38 -07:00
Louis Ryan a623445b00 Fix IntelliJ project generation by including generated protobuf srcs 2015-03-12 13:46:14 -07:00
Eric Anderson acfe3def6e Stall MessageDeframer pro-actively
This allows sooner delivery of errors. We never needed to stop delivery
for unexpected EOS, but instead the application would have been required
to request() another message before delivering. Stalling MessageDeframer
sooner removes the need for the application to request another message
before noticing that the buffers are empty.
2015-03-12 11:28:19 -07:00
Eric Anderson 14444a91cf Force JavaDoc to intepret code as UTF-8
We are already specifying to javac that our code is UTF-8, but we also
need to specify to JavaDoc, even though we don't have any non-ASCII
characters in JavaDoc comments.

Tested with LC_ALL=C
2015-03-12 10:49:54 -07:00
nmittler d4d66a5fef Better error description onGoAwayRead 2015-03-12 08:16:52 -07:00
Eric Anderson 238a4cb620 Add two extra cases to make edge case testing more obvious. 2015-03-11 15:14:28 -07:00
Eric Anderson 8986fc3412 Reorganize tests. Tweak Javadoc formatting 2015-03-11 15:10:35 -07:00
Eric Anderson 0e904f08e0 Tweak Http2Error and add tests 2015-03-11 14:45:03 -07:00
Jakob Buchgraber f822416f35 Use DEFAULT_WORKER_EVENT_LOOP_GROUP for both client and server. Fixes #82
+ Use only one thread for the boss eventloop group by default.
2015-03-11 14:31:51 -07:00
Jakob Buchgraber c56cec7d92 Update README.md to Netty 4.1 2015-03-11 14:30:08 -07:00
nmittler 2a425090d1 Migrating to Netty 4.1
Fixes #164
2015-03-11 13:18:27 -07:00
nmittler 54be11ef3c Updating to the latest Netty version. 2015-03-10 15:43:19 -07:00
Nathan Mittler a979197da2 Merge pull request #178 from nmittler/okhttp
Test receiving invalid stream IDs in okhttp
2015-03-10 13:42:17 -07:00
Jorge Canizales ad5ae259bb Fixes javadoc errors 2015-03-10 09:24:06 -07:00
nmittler fad21aafe7 Test receiving invalid stream IDs in okhttp
Fixes #173
2015-03-09 14:10:10 -07:00