2183 Commits

Author SHA1 Message Date
89caed9e62 Return header in Stream.Header() if available (#1281)
* Return header in Stream.Header() if available

Add additional nonblocking select clause that would
check if the header is available and return it if it is.

Current implementation of transport Header often
doesn't return header, but a cancel error even though
the top level context is not canceled and the rpc
is successful and a header is actually available.
It's caused by the fact that select can choose any
"ready" channel.
Retrieving headers is flaky. With this fix, headers
are consistently retrieved for successful rpcs.

* Return header both when cancel and go away
2017-06-13 11:34:50 -07:00
a94a7ac054 add license for some files (#1296) 2017-06-12 18:10:06 -07:00
20e03965ab Make RPCs non-failfast in grpclb_test. (#1302) 2017-06-12 17:54:35 -07:00
0c68d6e2f2 Specify characters allowed in metadata keys (#1299) 2017-06-12 15:05:52 -07:00
ba30de56b8 use subtests for the benchmark_test and add it into the Makefile (#1278)
* use subtests for the benchmark_test and add it into the Makefile

* benchmark: keep the original benchmark_test as version 16. use subtests benchmark as 17
2017-06-12 14:52:33 -07:00
84158ac547 update the path of guide (#950) 2017-06-09 14:05:01 -07:00
cfd21dac77 Create latency package for realistically simulating network latency (#1286) 2017-06-09 09:24:50 -07:00
dbdb479a60 Deflake TestFlowContolLogicalRace (#1279) 2017-06-08 12:54:42 -07:00
d1cd1551aa Merge pull request #1290 from jtattermusch/apache_license
Update LICENSE to apache 2
2017-06-08 18:53:08 +02:00
a185794240 patents are part of Apache2 license 2017-06-08 14:44:28 +02:00
ddbf6c46a6 autofix license notice 2017-06-08 14:42:19 +02:00
3c7e64ff7f add AUTHORS and LICENSE 2017-06-08 14:37:28 +02:00
06c984861f Change version to 1.5.0-dev (#1288) 2017-06-07 15:15:26 -07:00
d2a85bf7ad transport: fix minor typo in 'GoAway' godoc (#1284)
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-06-06 11:38:41 -07:00
8de2dff78c Piggyback window updates for connection with those of a stream. (#1273) 2017-06-05 10:25:41 -07:00
6fecf2831a Reopening: Server shouldn't Fatalf in case it fails to encode. (#1276)
* Server shouldn't Fatalf in case it fails to encode.
2017-06-02 12:32:37 -07:00
a8cd0c13a4 Avoid int32 overflow when applying initial window size setting 2017-06-01 12:36:46 -07:00
843116533a Revert "Server shouldn't Fatalf in case it fails to encode. (#1251)" (#1274)
This reverts commit d5bc85c1e9a36225ecc02757efcc874e13962973.
2017-06-01 12:34:28 -07:00
d5bc85c1e9 Server shouldn't Fatalf in case it fails to encode. (#1251)
* Server shouldn't Fatalf in case it fails to encode.

* golint

* post-review update
2017-06-01 11:57:45 -07:00
1e47334c73 Decouple transport flow control from application read. (#1265)
* Decouple transport flow control from application read.

* post-review update

* Added comment in http2_server as well.

* Added another test

* Fixed typos in comments.
2017-06-01 09:42:07 -07:00
a113590521 Update references to route_guide.proto to use new directory name (#1270)
route_guide.proto used to be in a directory called proto. It was renamed
to routeguide but the code/README still referred to the previous
directory name.

Signed-off-by: Steven Erenst <stevenerenst@gmail.com>
2017-05-31 14:16:25 -07:00
6bb76488de add MaxConcurrentStreams to benchmark_test when start the server (#1271) 2017-05-31 14:15:37 -07:00
bb3728664d Merge pull request #1267 from jtattermusch/improve_contributing
Improve contributing.md and add issue template
2017-05-31 10:47:58 -07:00
e49f6f2d13 Update CONTRIBUTING.md 2017-05-30 20:06:49 -07:00
0294ac816d Create ISSUE_TEMPLATE 2017-05-30 20:03:09 -07:00
2739967807 re-enable handler_server in end2end test, and fix some failed tests (#1259) 2017-05-26 08:26:41 -07:00
3a46d9d519 Avoid panic caused by stdlib context package errors (#1258) 2017-05-24 16:01:38 -07:00
72395c537b Initialize stream properly in handler_server. (#1260) 2017-05-24 11:58:17 -07:00
6dff7c5f33 Expand stream's flow control in case of an active read. (#1248)
* First commit

* Imported tests from the original PR by @apolcyn.

* Formatting fixes.

* More formating fixes

* more golint

* Make logs more informative.

* post-review update

* Added test to check flow control accounts after sending large messages.

* post-review update

* Empty commit to kickstart travis.

* Post-review update.
2017-05-23 11:39:15 -07:00
79f73d62e5 Suppress server log message when EOF without receiving data for preface (#1052) 2017-05-22 14:45:37 -07:00
5e42b6f37e Fixed comment spelling (#1254) 2017-05-22 13:13:07 -07:00
9f919f7b81 Merge pull request #1165 from lyuxuan/service_config_pr
Expand service config support
2017-05-22 11:15:26 -07:00
4a7b4d033a minor fix 2017-05-19 16:38:37 -07:00
cb64938381 fix minor issues 2017-05-19 16:02:02 -07:00
9bf8ea0a82 clientconn, server: replace time.After with time.NewTimer (#998)
When timeout is not hit `time.After` will leak unnecessary timer, so
it's better to stop timer explicitly.

Signed-off-by: Alexander Morozov <lk4d4math@gmail.com>
2017-05-19 15:57:10 -07:00
c7379be7b6 grpclb balancer.Close() should not panic if called more than once (#1250) 2017-05-19 15:44:37 -07:00
27ae1472a3 remove some todo comments 2017-05-19 14:55:35 -07:00
074dbfbc52 Add doc and example for mocking streaming RPCs (#1230)
* Example code for mocking streams
* Added another expectation on the stream
* Documentation for mocking streaming RPCs
2017-05-19 13:36:45 -07:00
ed64d51c18 remove unnecessary ok 2017-05-19 11:52:09 -07:00
d19bbe846e change max message size functions name 2017-05-19 11:08:40 -07:00
504db8e582 merge master 2017-05-18 14:52:35 -07:00
11d93ecdb9 Test for EmptyCallOption 2017-05-17 14:47:38 -07:00
ce595b8452 Implement EmptyCallOption 2017-05-17 14:47:38 -07:00
3419b42955 Reuse Token for serviceAccount credentials (#1238) 2017-05-16 12:37:36 -07:00
3773797869 Travis: add staticcheck (#1019)
Also only run golint and go vet in Go 1.8, and fix some vet failures.
2017-05-15 17:05:27 -07:00
7505481848 comments added 2017-05-15 15:13:53 -07:00
4d2b4b5c51 fix minor typo 2017-05-15 14:36:20 -07:00
e2f22b027b Defined GA and add pointer to benchmarks (#1239) 2017-05-15 14:12:16 -07:00
35d77ea991 merge master, resolve conflicts 2017-05-15 13:54:22 -07:00
bdf9a640e4 add timeout test, add check or pointer filed in callOption, fix minor issues 2017-05-15 13:51:11 -07:00