Commit Graph

2719 Commits

Author SHA1 Message Date
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
Nathan Mittler f1b6f623c5 Merge pull request #166 from nmittler/doclint
Tightening up error message for GO_AWAY.
2015-03-09 13:49:03 -07:00
nmittler dfcfb7bca1 Tightening up error message for GO_AWAY.
The attempt here is to identify all causes of GO_AWAY and to ensure
there is a reasonable description to help understand the cause.

Fixes #163
2015-03-09 13:48:15 -07:00
Nathan Mittler 2c07e23911 Merge pull request #177 from nmittler/irce
Proper buffer closure when receiving DATA with EOS
2015-03-09 13:29:31 -07:00
nmittler 4deff027ba Proper buffer closure when receiving DATA with EOS
The Http2ClientStream should not close the buffer in this case since
it's already been given to the deframer and potentially to the user.

Added cleanup code to MessageDeframer and AbstractClientStream to make
sure that we free the Buffer when appropriate.
2015-03-09 13:28:32 -07:00
Eric Anderson 456216b364 Add some details for building on Windows.
More will be necessary, as we don't describe how to build protobuf
itself, but this should be a clear improvement.
2015-03-03 22:49:19 -08:00
Nathan Mittler 967c27d288 Merge pull request #165 from nmittler/doclint
Disable Javadoc doclint on Java 8
2015-03-03 09:52:34 -08:00
nmittler 732cfc0d55 Disable Javadoc doclint on Java 8
It breaks the build.
2015-03-03 07:59:13 -08:00
Nathan Mittler bdb3f4e97d Merge pull request #161 from adewale/patch-1
Correct small grammar error in comment.
2015-03-02 16:12:56 -08:00
Ade Oshineye 9b5575daa1 Correct small grammar error in comment. 2015-03-03 00:11:50 +00:00
Eric Anderson 192144eaf9 Add Sonatype OSSRH upload support, with nice POMs
Mockito was upgraded to latest to solve JavaDoc issue with
ArgumentsAreDifferent.

We don't yet publish any artifacts for grpc-compiler.
2015-03-02 15:20:06 -08:00
Eric Anderson b938ba5106 Support building on Windows
Protoc should be in PATH and the project properties protobuf.include and
protobuf.libs should be set. For example:

gradlew build -Pprotobuf.include=C:\path\to\protobuf-3.0.0-alpha-2\src ^
  -Pprotobuf.libs=C:\path\to\protobuf-3.0.0-alpha-2\vsprojects\Release

When running more than once, it is probably more convenient to create
%HOMEDRIVE%%HOMEPATH%\.gradle\gradle.properties with contents like:

protobuf.include=C:\\path\\to\\protobuf-3.0.0-alpha-2\\src
protobuf.libs=C:\\path\\to\\protobuf-3.0.0-alpha-2\\vsprojects\\Release
2015-03-02 13:34:09 -08:00
Jakob Buchgraber 4a2c0a5637 Have SendGrpcFrameCommand constructor take an AbstractStream object instead of a stream id.
As part of the effort to remove all blocking bits from the NettyClientStream with
this commit the SendGrpcFrameCommand now takes a stream object instead of the
stream id. This will be necessary as in a non blocking world the stream id might
not have yet been allocated when the SendGrpcFrameCommand gets instantiated.
2015-03-02 11:37:57 -08:00
zhangkun83 ef87818758 Polish javadoc for transport/ 2015-03-02 11:10:29 -08:00
zhangkun83 abd4eec055 Implement cancellation for the Future interface. 2015-03-02 10:33:59 -08:00
Nathan Mittler b780bf03b2 Merge pull request #151 from nmittler/examples_style
More example changes to match style guide.
2015-02-27 11:17:13 -08:00
nmittler 2c7c32d227 More example changes to match style guide. 2015-02-27 11:04:42 -08:00
Nathan Mittler bb71e21613 Merge pull request #149 from nmittler/examples_style
Updating examples to be consistent with proto3 styleguide.
2015-02-27 09:43:46 -08:00
nmittler 81cc0daea7 Updating examples to be consistent with proto3 styleguide. 2015-02-27 09:18:19 -08:00
Takeshi Hagikura 4e7873f875 Fixes the path for cd command 2015-02-28 00:08:57 +09:00
Takeshi Hagikura b24be6643f Build the Android tutorial app by gradle 2015-02-27 23:59:54 +09:00
louiscryan 4afd98486c Merge pull request #147 from grpc/jayantkolhe-patch-1
Create PATENTS
2015-02-26 15:16:56 -08:00
Jayant Kolhe b700ade6c5 Create PATENTS
Adding Patent Grant File
2015-02-26 15:10:59 -08:00
zsurocking 0d22cd2d32 Update README.md 2015-02-26 12:03:10 -08:00
Xiao Hang 6f0b21ee92 Update compiler/README.md with nano codegen commandline 2015-02-26 11:19:59 -08:00
Xiao Hang 62fb1d2c8a Bug fix. frameWriter and frameReader are not initialized when an Exception is thrown in socket creation.
So do not touch them in shutdown path if they are null.
2015-02-26 10:48:14 -08:00
nmittler 6c6789c0a8 Adding SimpleContext back into messages.proto. 2015-02-26 10:33:18 -08:00
LisaFC 8de9938977 Merge pull request #113 from LisaFC/master
Added client implementation details to Java tutorial
2015-02-26 17:25:34 +00:00
Lisa Carey 3727e50066 Added client implementation details 2015-02-26 17:06:14 +00:00
LisaFC a096d4a995 Merge pull request #103 from tbetbetbe/grpc_samples_ruby_route_guide_doc
Grpc samples ruby route guide doc
2015-02-26 16:31:16 +00:00