2270 Commits

Author SHA1 Message Date
e78a1f396d conflict resolve 2017-01-27 11:18:35 -08:00
b2448f6c9b intermediate change 2017-01-27 11:15:56 -08:00
21f8ed3094 Merge pull request #1041 from markdroth/service_config_doc_fix
Update comment in service config struct.
2017-01-27 07:26:01 -08:00
52422a51d3 Merge remote-tracking branch 'upstream/master' into service_config_doc_fix 2017-01-26 14:43:31 -08:00
6e0ace39fe Change max message size fields from uint64 to uint32. 2017-01-26 14:43:08 -08:00
50955793b0 Debugging tests for AuthInfo (#1046)
* debug

* fix
2017-01-11 11:10:52 -08:00
9d8ac14538 Add Go interop http2 client 2017-01-10 15:05:15 -08:00
cb653e4b61 Change stats APIs (#1030)
Change stats API from one static handler to one handler per server or client.
2017-01-09 17:11:32 -08:00
4ed348913c ClientHandshake to return AuthInfo (#956)
* Initial commit

* Initial commit 2

* minor update

* goimport update

* resolved race condition

* added test for TLSInfo on server side

* Post review updates

* port review changes

debug

debug

* refactoring and added third function

* post review changes

* post review changes

* post review updates

* post review commit

* post review commit

* post review update

* post review update

* post review update

* post review update

* post review commit

* post review update
2017-01-09 13:29:20 -08:00
325a0c2061 Update comment. 2017-01-09 12:59:10 -08:00
49d2a88c27 Comment formatting 2017-01-06 17:18:22 -08:00
eeb6f5bade code cleaning 2017-01-06 16:52:37 -08:00
85497e2c51 Merge pull request #1040 from menghanl/interop_change
call cancel on context in DoTimeoutOnSleepingServer
2017-01-05 13:53:19 -08:00
ec1de5b416 call cancel on context in DoTimeoutOnSleepingServer 2017-01-05 13:01:42 -08:00
c810507164 Merge pull request #1035 from adelez/no_failfast
Set failfast to false for stress tests. Also wait for all rpcs are done before ending the test.
2016-12-28 16:41:21 -08:00
dd6905b8b2 Wait until all rpcs are done instead of a hard stop. 2016-12-28 11:59:08 -08:00
97b8c7c529 Set failfast to false for stress tests. 2016-12-27 16:56:55 -08:00
9d682f9293 Merge pull request #1024 from ThibaultRiviere/fix/bash_path
FIX: use /usr/bin/env bash in shebang
2016-12-21 16:19:25 -08:00
47b25d4b97 remove proto object allocs on streaming benchmark server 2016-12-21 11:28:07 -08:00
09aecb094e Add the initial service config support (#1009)
* Add the initial service config support

* start scWatcher later

* remove timeoutCh

* address the comments

* deal with dial timeout

* defer cancel for the newly created context for correct lifetime management

* fix the defer order

* added other 2 missing cancels
2016-12-19 16:31:00 -08:00
64362e655d FIX: use /usr/bin/env bash in shebang
FIX: grpc/grpc-go#1023

Signed-off-by: Thibault Riviere <thibault.riviere@scality.com>
2016-12-17 20:45:30 +01:00
541319e4fb Update gomock-example.md 2016-12-15 14:19:28 -08:00
6a68fd8584 post review updates 2016-12-15 14:07:52 -08:00
1a9e782d7d Merge branch 'mmukhi_gomock_example' of https://github.com/MakMukhi/grpc-go into mmukhi_gomock_example 2016-12-13 15:49:55 -08:00
a0474a67ea exclude mockgen generated code from golint 2016-12-13 15:48:06 -08:00
54f30019da Update gomock-example.md 2016-12-13 15:43:20 -08:00
5202729e3a Update gomock-example.md 2016-12-13 14:09:53 -08:00
e6b4662278 Update gomock-example.md 2016-12-13 13:49:43 -08:00
0708983f29 Create gomock-example.md 2016-12-13 13:10:39 -08:00
9cc4fd4cca Example code on how to mock gRPC services 2016-12-13 13:06:25 -08:00
8712952b7d Merge pull request #1018 from menghanl/serve_error_doc
add always returns non-nil error comment to server.serve()
2016-12-09 13:45:00 -08:00
5ad7c5b8ca add always returns non-nil error comment to server.serve() 2016-12-08 13:48:11 -08:00
7484960149 remove stats.Stop() and fix flaky stats test (#1016) 2016-12-07 17:33:01 -08:00
708a7f9f32 Merge pull request #1008 from ncteisen/stress_test_fix
Add Available Interop Tests to Stress Client
2016-12-02 10:43:27 -08:00
4203221fb9 Lint fix 2016-12-01 17:15:47 -08:00
8da57eb855 Add availible interop tests to stress client 2016-12-01 17:14:11 -08:00
417442a753 transport: fix logical race in flow control (#1005)
Remove the add and cancel methods of quotaPool. Their use is not required, and
leads to logical races when used concurrently from multiple goroutines. Rename
the reset method to add.

The typical way that a goroutine claims quota is to call the add method and
then to select on the channel returned by the acquire method. If two
goroutines are both trying to claim quota from a single quotaPool, the second
call to the add method can happen before the first attempt to read from the
channel. When that happens the second goroutine to attempt the channel read
will end up waiting for a very long time, in spite of its efforts to prepare
the channel for reading.

The quotaPool will always behave correctly when any positive quota is on the
channel rather than stored in the struct field. In the opposite case, when
positive quota is only in the struct field and not on the channel, users of
the quotaPool can fail to access available quota. Err on the side of storing
any positive quota in the channel.

This includes a reproducer for #632, which fails on many runs with this
package at v1.0.4. The frequency of the test failures depends on how stressed
the server is, since it's now effectively checking for weird interleavings of
goroutines. It passes reliably with these changes to the transport package.

The behavior described in #734 (an RPC with a streaming response hangs
unexpectedly) matches what I've seen in my programs, and what I see in the
test case added here. If it's a logical flow control bug, this change may well
fix it.

Updates #632
Updates #734
2016-11-30 17:39:40 -08:00
deb01f422a add stats tagger APIs and connection stats. (#992)
* add stats.tagger APIs and connection stats.

* fix comments

use ac.ctx in http2client
change name and comments
small fixes stats_tests

* add a TODO to ConnTagInfo

* rename handle to handleRPC

* modify stats comments
2016-11-30 16:25:46 -08:00
cc3363f26e Merge pull request #937 from menghanl/reflection_tutorial
Add server-reflection-tutorial.md
2016-11-29 17:57:20 -08:00
c7bdf3912d Merge pull request #997 from ncteisen/stress_client_flags
Add new flags to go stress client
2016-11-29 14:24:20 -08:00
e8e88dedc6 Merge pull request #1003 from xyzzyz/fix_log
Use InfoDepth/FatalDepth in glogger.go
2016-11-29 14:05:45 -08:00
4a119ee276 Use InfoDepth/FatalDepth in glogger.go
This way, log messages will show the proper location where the log
statement originated, instead of "glogger.go:67" or something like that.
2016-11-29 12:51:42 -08:00
87da90422f Add logging of new flags 2016-11-28 17:06:54 -08:00
5e3de3f217 Merge pull request #995 from yangmls/master
correct errors in documentation
2016-11-28 14:26:00 -08:00
eca2ad68af Merge pull request #999 from iamqizhao/interop
fix the flakiness of timeout_on_sleeping_server interop test
2016-11-23 12:59:59 -08:00
f45b8d1e94 fix the flakiness of timeout_on_sleeping_server interop test 2016-11-23 11:35:48 -08:00
e9ab07574f Add new flags to go stress client
Stress client can now handle connections with TLS. It can also use the
custom ca file in the new testdata file.
2016-11-21 17:56:44 -08:00
901cdf6fb5 Post review updates 2016-11-21 14:18:57 -08:00
b7d24ba0eb correct errors in documentation 2016-11-21 16:07:22 +08:00
63bd55dfbf Merge pull request #994 from menghanl/fix_circular_dependency
fix a circular dependency in clientconn_test
2016-11-18 15:23:07 -08:00