Gyu-Ho Lee
c706c6e238
embed: mutate /v3alpha requests with /v3beta for backward compatibilities
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-11-15 02:14:04 -08:00
Gyu-Ho Lee
5fd419ff50
embed: replace v3alpha serve path with v3beta
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-11-15 01:55:49 -08:00
Iwasaki Yudai
37eabd770e
embed: support websocket for bi-directional streams
2017-10-05 16:08:18 -07:00
Gyu-Ho Lee
157c8eccf0
embed: define keepalive server options
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-09-28 11:19:29 -07:00
Gyu-Ho Lee
f65aee0759
*: replace 'golang.org/x/net/context' with 'context'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-09-07 13:39:42 -07:00
Anthony Romano
35c5dcefc2
*: cockroachdb/cmux -> soheilhy/cmux
...
Has fixes not in fork. Includes SetReadTimeout.
2017-08-22 09:59:59 -07:00
Anthony Romano
63350f5ac1
embed: connect json gateway with user-provided listen address
...
net.Listener says its address is [::] when given 0.0.0.0, breaking
hosts that have ipv6 disabled.
Fixes #8151
Fixes #7961
2017-07-06 14:24:29 -07:00
Anthony Romano
87d16af2e2
embed: use transport TLS listener for client listener for CRLs
2017-06-19 15:23:41 -07:00
Anthony Romano
db7ab961bf
embed: share grpc connection for grpc json services
2017-05-22 12:59:13 -07:00
Gyu-Ho Lee
7d21d6c894
embed: gracefully close peer handlers on shutdown
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-05-06 07:47:23 -07:00
Anthony Romano
393e4335b7
*: put gateway stubs into their own packages
...
Fixes #7773
2017-04-19 13:09:06 -07:00
Gyu-Ho Lee
ba299bcaaf
embed: signal 'grpcServerC' before cmux serve
...
CMux.Serve blocks, so grpcServerC was never closed.
Fix https://github.com/coreos/etcdlabs/issues/216 .
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-18 17:49:50 -07:00
Gyu-Ho Lee
8aaa1ed911
*: use '*tls.Config.Clone' in Go 1.8
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-17 20:08:27 -07:00
Gyu-Ho Lee
c407e097e2
embed: gracefully shut down gRPC server
...
Fix https://github.com/coreos/etcd/issues/7322 .
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-17 14:12:40 -07:00
Anthony Romano
93594006df
embed: register grpc-gateway endpoints for v3lock and v3election
2017-04-10 15:21:07 -07:00
Anthony Romano
78422eaa17
embed: add Election service
2017-04-07 16:36:38 -07:00
Xiang
fd5984af56
*: add pprof flag to grpc proxy
2017-04-03 22:07:17 -07:00
fanmin shi
f292a4c953
embed: don't return error when closing on embed etcd
...
FIXES #7019
2017-03-17 13:41:05 -07:00
Anthony Romano
ad1a790116
embed: serve lock api
2017-03-13 15:23:26 -07:00
Anthony Romano
c4f1e64de7
embed: enable debug endpoint if Debug is set and add net.trace events
...
/debug/ was only being enabled for Pprof.
2017-02-27 11:34:58 -08:00
disksing
4374d944d4
embed: support user defined grpc services.
...
Fixes #7200
2017-01-22 18:21:19 +08:00
Vimal Kumar
f80914fba2
embed/etcd.go: make v2 endpoint optional. fixes #7100
2017-01-20 11:49:52 +05:30
Anthony Romano
cc931a2319
embed: deep copy user handlers
...
Shallow copy of user handlers leads to a nil map assignment when
enabling pprof. Since the map is being modified, it should probably
be deep copied into the server context, which fixes the crash.
2016-12-14 10:17:32 -08:00
Anthony Romano
2c06def8ca
etcdserver, embed, v2http: move pprof setup to embed
...
Seems like a better place for prof setup since it's not specific to v2.
2016-12-09 12:37:35 -08:00
siddontang
86de0797e1
embed: support registering user handlers
2016-07-28 13:39:06 +08:00
Gyu-Ho Lee
b2b98399fb
embed: change import path to 'grpc-ecosystem'
2016-07-15 12:10:38 -07:00
Anthony Romano
f4f33ea767
etcdmain, embed: export Config and StartEtcd into embed/
...
Lets programs embed etcd.
Fixes #5430
2016-07-13 10:40:03 -07:00