etcd/embed
Gyu-Ho Lee 334554f655 embed: wait up to request timeout for pending RPCs when closing
Both grpc.Server.Stop and grpc.Server.GracefulStop close the listeners
first, to stop accepting the new connections. GracefulStop blocks until
all clients close their open transports(connections). Unary RPCs
only take a few seconds to finish. Stream RPCs, like watch, might never
close the connections from client side, thus making gRPC server wait
forever.

This patch still calls GracefulStop, but waits up to 10s before manually
closing the open transports.

Address https://github.com/coreos/etcd/issues/8224.

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-07-14 15:31:40 -07:00
..
config.go embed: configure 'ListenMetricsUrls' 2017-07-14 11:14:05 -07:00
config_test.go embed: use '*url.URL.Hostname(),Port()' for Go 1.8 2017-04-18 12:08:59 -07:00
doc.go embed: Move the ReadyNotify() call to a better place 2016-08-29 22:45:41 -04:00
etcd.go embed: wait up to request timeout for pending RPCs when closing 2017-07-14 15:31:40 -07:00
serve.go embed: connect json gateway with user-provided listen address 2017-07-06 14:24:29 -07:00
serve_test.go embed: fix blocking Close before gRPC server start 2017-05-01 16:41:13 -07:00
util.go *: use filepath.Join for files 2017-03-16 07:46:06 -07:00