273 Commits

Author SHA1 Message Date
213a20c4fe bug fix, typo fix and slight error refactoring 2016-06-28 16:08:19 -07:00
01ef81a4d9 minor fix including removal of debugging logs, error code fix, etc. 2016-06-27 15:30:20 -07:00
3e71fb360d Support fail-fast mode and make it the default 2016-06-27 14:36:59 -07:00
3efe7aef96 Merge pull request #713 from menghanl/split_authenticator_and_credentials
[API revision] Separate TransportAuthenticator and PerRPCCredentials
2016-06-09 14:57:55 -07:00
d9c8fb446d Change errCredentialsMisuse to errCredentialsConflict and errTransportCredentialsMissing 2016-06-08 13:53:41 -07:00
59486d9c17 Rename TransportAuthenticator to TransportCredentials 2016-06-08 11:19:25 -07:00
eada4fb145 clientconn: buffer waitC on Dial goroutine
Leaks a goroutine on dial timeout if unbuffered.
2016-06-07 15:47:54 -07:00
3ffbd8e030 Rename Credentials to PerRPCCredentials 2016-06-06 17:28:10 -07:00
f0feaea314 Should be only one TransportAuthenticator 2016-06-06 16:35:41 -07:00
6404c49192 Make TransportAuthenticator not embed Credentials 2016-06-06 16:24:46 -07:00
3a6b72b858 add errNoAddr 2016-06-06 12:16:33 -07:00
24a701cae7 revise the comments of WithTimeout 2016-06-06 12:13:00 -07:00
404e9b67de dial time out 2016-06-06 12:08:11 -07:00
e8316072cd Fix remaining instances of gRPC spelling.
According to http://www.grpc.io/faq/, the project is called gRPC. It's
already referred by that name in most places, except a few instances
where it's still "GRPC". Fix those to have consistency.
2016-06-02 18:00:07 -07:00
2700f043b9 some small fixes 2016-06-01 14:09:21 -07:00
fca009f66f Fix some small comments 2016-05-26 15:11:33 -07:00
817b48219c Fix a typo bug and handle stale addrConns 2016-05-26 14:20:31 -07:00
db887c9bcd rename controller 2016-05-25 18:17:23 -07:00
9dc3da0633 make downErr for Balancer down closure 2016-05-25 11:28:45 -07:00
0b1df3bca2 add BalancerGetOption 2016-05-24 17:19:44 -07:00
5b484e4099 add Notify API; move the name resolving into Balancer 2016-05-23 19:25:01 -07:00
5d62215b41 some minor fixes 2016-05-18 16:26:12 -07:00
162d8d2d33 Tune Invoke behavior for the new Balancer. 2016-05-18 11:18:10 -07:00
e9e748b978 small fix and more comments 2016-05-17 17:18:54 -07:00
65969fb499 lock optimization 2016-05-16 19:19:35 -07:00
73ff8375a6 Remove debugging logs and add license. 2016-05-16 15:47:46 -07:00
aa532d5baf Fix some issues and remove garbbage files 2016-05-16 15:31:00 -07:00
31ef3ef957 some touchups 2016-05-13 15:08:09 -07:00
f4b89fe44f some fixes 2016-05-13 13:27:35 -07:00
e3351672ba complete some unfinished error 2016-05-13 13:26:36 -07:00
32eec1acef add comments 2016-05-12 18:52:24 -07:00
f93b6bbfb5 Merge branch 'master' of https://github.com/grpc/grpc-go 2016-05-12 17:43:51 -07:00
a1b60d7b43 Add the tests for balancer and resolver 2016-05-12 17:01:58 -07:00
46f2afd293 Interrupt retry Sleep() on client connection shutdown
Otherwise transportMonitor hangs around long enough after Close() that it
looks like a goroutine leak.
2016-05-12 13:14:22 -07:00
19ded23951 graceful close and test 2016-05-10 19:29:44 -07:00
9c2d8546bf load balancer 2016-05-06 15:47:09 -07:00
9cec19a4d4 make setDefault(...) non-member function 2016-04-18 13:15:27 -07:00
8ef1dcabab backoff: make DefaultBackoffConfig a concrete value
To enforce immutability of the `DefaultBackoffConfig`, we've made it a
concrete value. While fields can still be set directly on the value,
taking a copy will not incidentally pull a reference to the variable.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2016-04-18 11:33:39 -07:00
9ff38e9093 backoff: set default values on BackoffConfig
Because most of the fields on `BackoffConfig` are unexported, correctly
using the config requires copying from the default. This sets the
defaults appropriately and falls back to a default if MaxDelay is
negative or zero.

Tests are added to ensure that the backoff is set correctly in common
use cases.

Signedroff-by: Stephen J Day <stephen.day@docker.com>
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2016-04-15 16:12:47 -07:00
d07d0562ff Merge pull request #601 from stevvooe/backoff-strategy
backoff: allow configuration of backoff strategy
2016-04-11 10:32:33 -07:00
47b74a63a8 backoff: allow configuration of backoff strategy
The backoff function and parameters have been pulled up into an
interface `backoffStrategy`. The default parameters are now part of a
package variable `DefaultBackoffConfig`. The strategy is then plumbed
through `dialOptions`. As a result of this PR, the
maximum backoff delay can now be set using the `WithBackoffConfig` dial
option.

While the addition of strategy may seem premature, this allows one to
simply export `BackoffStrategy` and `WithBackoff` to allow arbirarily
configurable backoff strategies.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2016-04-07 20:17:57 -07:00
2a118f74a2 minor cleanup: simplify looping 2016-03-31 22:05:49 -04:00
047af78181 fix a few typos 2016-03-16 16:40:16 -07:00
0be94ab3f5 fix a race between transport creation and wait returning 2016-02-22 16:26:15 -08:00
af8888dc8d remove Compressor/DecompressorGenerator 2016-01-29 14:38:20 -08:00
61d7c39d4c comments and gofmt 2016-01-25 11:18:41 -08:00
da3bb0c9f7 Support compression 2016-01-22 18:21:41 -08:00
c1330e18aa some missing comments 2016-01-07 14:18:20 -08:00
f0ee5628a9 add more comments 2015-12-14 14:43:21 -08:00
758cf3083a add comments to NotifyReset 2015-12-14 14:40:21 -08:00