sharat
2656b594bb
rafthttp: use http.Request.WithContext instead of Cancel
2017-02-02 02:30:36 +05:30
Vimal Kumar
64e1a327ee
rafthttp/metrics.go:fixed TODO: record write/recv failures.
2016-09-15 11:32:08 +05:30
Gyu-Ho Lee
0503676bde
rafthttp: fix httputil.RequestCanceler
2016-08-14 14:36:51 -07:00
Nikita Vetoshkin
fd5bc21522
rafthttp: use pointers to avoid extra copies upon message encoding
2016-06-29 21:17:18 +05:00
Xiang Li
c25c00fcf9
rafthttp: simplify initialization funcs
2016-06-01 21:47:46 -07:00
Gyu-Ho Lee
bd71a60875
rafthttp: update LICENSE header
2016-05-12 20:49:28 -07:00
Xiang Li
98dbdd5fbb
*: simplify network metrics
2016-05-09 22:37:12 -07:00
Gyu-Ho Lee
a42d1dc1fe
*: drain http.Response.Body before closing
2016-03-30 09:35:47 -07:00
Anthony Romano
fe7cfe4d3d
rafthttp: plumb local peer URLs through transport
2016-02-05 16:44:41 -08:00
Xiang Li
d07a9cd893
Merge pull request #4059 from xiang90/snap_log
...
rafthttp: better snapshot sending logging
2015-12-28 10:05:35 -08:00
Xiang Li
4be152bb4f
rework
2015-12-23 16:21:16 -08:00
Xiang Li
ab31ba0d29
*: fix snapshot sending cycle
2015-12-23 13:58:57 -08:00
Xiang Li
74dba2d4cf
rafthttp: better snapshot sending logging
...
snapshot sending is an important event. We should always log it explicitly.
2015-12-23 12:36:07 -08:00
Xiang Li
7d78e0c85e
rafthttp: remove the unncessary TODO
...
The issue is not caused by this code, but by reading snapshot
from disk. etcd assumes the snapshot of v3 kv should live in
memory. If not, etcd does not work well anyway.
2015-12-11 09:37:41 -08:00
Xiang Li
95c29838e3
rafthttp: move ReadCloser to ioutil
2015-12-11 09:37:41 -08:00
Xiang Li
2fc3320e59
rafthttp: kill the receiving body timeout TODO in snapshot sender
2015-12-10 22:42:17 -08:00
Xiang Li
23bd60ccce
*: rewrite snapshot sending
2015-12-08 18:21:21 -08:00
Yicheng Qin
1f21ccf166
rafthttp: support sending v3 snapshot message
...
Use snapshotSender to send v3 snapshot message. It puts raft snapshot
message and v3 snapshot into request body, then sends it to the target peer.
When it receives http.StatusNoContent, it knows the message has been
received and processed successfully.
As receiver, snapHandler saves v3 snapshot and then processes the raft snapshot
message, then respond with http.StatusNoContent.
2015-10-13 23:11:28 -07:00