22 Commits

Author SHA1 Message Date
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
4f404a1c98 fix a circular dependency in clientconn_test 2016-11-18 15:01:12 -08:00
c31bccc236 add FailOnNonTempDialError to control if gRPC should fail on non-temp dial error 2016-11-15 11:14:07 -08:00
df5d48b597 fix comments 2016-11-09 17:35:47 -08:00
947e436ef4 return non temporary connection error if dialer returns non temprary errors 2016-11-09 17:25:46 -08:00
f02984b7c6 Basic support of grpclb 2016-09-19 15:11:57 -07:00
979f41603b review fix 2016-09-12 10:35:11 -07:00
726462e0cc fix TestTLSServerNameOverwrite timeout error 2016-09-08 17:26:58 -07:00
74f7afb1f9 Move balancer initialization into a goroutine 2016-09-08 15:13:50 -07:00
a00cbfeab5 Overwrite authority if creds servername is specified 2016-09-06 11:23:30 -07:00
7873a050d4 fix the test 2016-08-24 10:46:06 -07:00
7eae19acb7 fix the issue 2016-08-23 19:23:04 -07:00
b38541aeb0 Implement DialContext to afford caller option of managing cancelation 2016-08-16 16:57:59 -04:00
6205cb25ab fix some bugs 2016-07-13 18:05:02 -07:00
d9c8fb446d Change errCredentialsMisuse to errCredentialsConflict and errTransportCredentialsMissing 2016-06-08 13:53:41 -07:00
6404c49192 Make TransportAuthenticator not embed Credentials 2016-06-06 16:24:46 -07:00
404e9b67de dial time out 2016-06-06 12:08:11 -07:00
9dc3da0633 make downErr for Balancer down closure 2016-05-25 11:28:45 -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
cb8841c36e move some tests from end2end.go to clientconn_test.go 2015-11-06 11:33:13 -08:00