2852 Commits

Author SHA1 Message Date
b74673af89 examples: wait_for_ready (#2503)
* Working example.

* Uses echo server.

* Style fix.

* Changes client streaming implementation.

* Adds README.

* replaces the use of failfast with waitforready.

* Adds package comment.
2018-12-13 16:13:38 -08:00
29a7ac4deb client: deprecates FailFast & replaces its use by WaitForReady. 2018-12-13 15:15:11 -08:00
39333409e4 internal: copy testdata to routeguide (#2478)
So it's not necessary to set the testdata file as flag.

Without this, using relative directory, the example only works if run in `example/routeguide`.
2018-12-13 14:47:53 -08:00
9d925ce589 examples: metadata (#2500) 2018-12-13 14:45:14 -08:00
53884fa7e6 grpclb: re-resolve when the stream to GRPCLB balancer fails (#2502) 2018-12-13 14:44:34 -08:00
191cc8e37b grpclb: filter out grpclb addresses if balancer in use is not grpclb (#2509) 2018-12-13 10:54:42 -08:00
ebf41aabc9 roundrobin: use balancer.ConnectivityStateEvaluator in roundrobin (#2520)
This PR refactors `connectivityStateEvaluator` with `balancer.ConnectivityStateEvaluator`.
2018-12-12 17:08:09 -08:00
102aee9b32 internal: cleanup roundrobin_test with cleanup function (#2519)
This PR refactor the code with a simple cleanup function.
2018-12-12 17:06:06 -08:00
14de8b69c2 WithWaitForHandshake: fix deprecated comment (#2518) 2018-12-10 17:17:24 -08:00
a3af876a09 internal: document example/echo proto (#2517) 2018-12-10 14:56:32 -08:00
aad0edeefb health: shutdown server to set NOT_SERVING and disallow future updates (#2513) 2018-12-10 14:17:43 -08:00
e242249c0e comment typo: MaxConnectionAgeGrace(#2515) 2018-12-09 23:18:17 -08:00
4be7750b61 plumb lastConn error in v1 balancer (#2508) 2018-12-07 09:12:49 -08:00
187e357ac1 examples: multiplex (#2477) 2018-12-06 14:02:16 -08:00
49616eb1a1 examples: add echo proto (#2505) 2018-12-06 10:40:29 -08:00
272e9d4fbd Change version to 1.18.0-dev (#2498) 2018-12-04 16:43:20 -08:00
ca62c6b92c channelz: fix GetSecurityValue function name. (#2450) 2018-11-30 06:01:10 +08:00
55ef601361 internal: cleanup remaining x/net/context (#2470) 2018-11-28 12:46:35 -08:00
f3eb5bc06e client: add GRPC_GO_REQUIRE_HANDSHAKE options to control connection behavior (#2464)
Possible settings of this environment variable:

- "hybrid" (default; removed after the 1.17 release): do not wait for handshake before considering a connection ready, but wait before considering successful.

- "on" (default after the 1.17 release): wait for handshake before considering a connection ready/successful.

- "off": do not wait for handshake before considering a connection ready/successful.

This setting will be completely removed after the 1.18 release, and "on" will be the only supported behavior.
2018-11-26 15:06:46 -08:00
ef2b8e2f53 internal: move syscall.Conn wrapper into a separate package (#2457)
Also skip wrapping if `rawConn` doesn't implement `syscall.Conn`.
2018-11-15 13:29:39 -08:00
0fccf8bf59 transport: increase BDP limit to 16MB to improve performance for high latency networks (#2455) 2018-11-13 16:12:37 -08:00
63ae68c968 proxy: support basic authentication (#2426)
Proxy-Authorization: https://tools.ietf.org/html/rfc7235#section-4.4
The 'Basic' HTTP Authentication Scheme: https://tools.ietf.org/html/rfc7617

updates #2422
2018-11-13 14:59:16 -08:00
04ea82009c cleanup: replace "x/net/context" import with "context" (#2439) 2018-11-12 13:30:41 -08:00
eb55fa50e6 resolverWrapper: remove the watcher goroutine (#2446) 2018-11-09 15:31:07 -08:00
a612bb6847 client: block RPCs early until the resolver has returned addresses (#2409)
This allows the initial RPC(s) an opportunity to apply settings from the service config; without this change we would still block, but only after observing the current service config settings.
2018-11-09 13:53:47 -08:00
12ed5d0f69 internal: split health proto package import in test (#2445) 2018-11-07 10:31:21 -08:00
c94cef3891 internal: split proto package import in health package (#2442) 2018-11-06 09:59:22 -08:00
d27440de3f client: set TCP_USER_TIMEOUT socket option for linux (#2307)
Implements proposal A18 (https://github.com/grpc/proposal/blob/master/A18-tcp-user-timeout.md).

gRPC Core issue for reference: https://github.com/grpc/grpc/issues/15889
2018-11-05 15:13:34 -08:00
1b89e78fdf test: Adds end2end tests for the case that Watch method returns unimplemented. (#2429)
Adds end2end tests for the case where Watch method is Unimplemented.
2018-11-05 14:24:11 -08:00
8f2842d4f0 client: in UpdateBalancerState, update picker before connectivity state (#2431)
In very rare cases, we could start an RPC before the picker had been updated to
one that would return a valid SubConn.  This is not a problem as the new picker
will be called again as soon as it is updated, but it can lead to test flakes
that depend upon the picker not being called before being ready.
2018-11-02 10:27:41 -07:00
761a6b364c binarylog: fix end2end test race (#2433) 2018-11-02 10:18:47 -07:00
59a2cfbdf9 Remove support for Go1.6-1.8 (#2428) 2018-11-01 15:43:42 -07:00
36ef35ddb6 internal: add doc to tlsConn wrapper for channelz (#2421) 2018-11-01 14:31:51 -07:00
0efb1e105d binarylog: no warning if no config string is set (is empty string) (#2430) 2018-11-01 14:31:10 -07:00
61c3ec866d docs: clarify SendMsg/CloseSend usage (#2418) 2018-11-01 12:29:53 -06:00
105f61423e health: Client LB channel health checking (#2387) 2018-11-01 10:49:35 -07:00
f4273b1bc8 binarylog: fix racy TestClientBinaryLogCancel (#2423) 2018-11-01 10:20:23 -07:00
5a500ee73f travis: remove Go 1.6 and 1.8 tests (#2415) 2018-11-01 08:50:05 -07:00
7271c8bb04 Fixes a broken test case. (#2425) 2018-10-31 16:29:11 -07:00
c86bc5cd5f health: Checks if the service's serving status has changed before sending an update (#2424) 2018-10-31 15:45:18 -07:00
6572a802a1 internal: update golint to use new url (#2393) 2018-10-31 14:39:18 -06:00
3332afdfad internal: binarylog test replace += 1 with ++ (#2420) 2018-10-31 13:34:00 -07:00
24638f5984 binarylog: call binary log in Client and Server (#2388)
Also includes:
 - Export `NewLoggerFromConfigString` so it can be also used when config string is specified in another way (e.g. command line flag)
 - Export `Logger` so user can install custom sink
 - Add temp file sink implementation
2018-10-31 10:21:20 -07:00
a88340f3c8 internal: add testutils package comment (#2414) 2018-10-30 16:29:06 -07:00
c4d3b2fa07 channelz: register sockets with meaningful refnames (#2416) 2018-10-30 16:28:48 -07:00
ec76f14f6f health: Merges healthcheck package to health package. (#2417) 2018-10-30 16:08:45 -07:00
582d1c9bbf healthcheck: add package comment (#2413) 2018-10-30 10:19:40 -07:00
aaaaffa63b channelz: data race fix (#2411) 2018-10-29 17:54:21 -07:00
0430365f23 channelz: update generated proto stubs 2018-10-29 16:33:56 -07:00
f86585f6f5 channelz: update generated proto stubs (#2408) 2018-10-29 10:24:39 -07:00