mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
chore(server/transporter): remove unnecessary timeout
This commit is contained in:
parent
3a5cb26973
commit
9caa801469
@ -42,9 +42,8 @@ func NewTransporter(followersStats *raftFollowersStats, serverStats *raftServerS
|
||||
// HTTPS connections blocked. The patch for it is in progress,
|
||||
// and would be available in Go1.3
|
||||
// More: https://codereview.appspot.com/69280043/
|
||||
ConnectTimeout: dialTimeout,
|
||||
RequestTimeout: requestTimeout,
|
||||
ReadWriteTimeout: responseHeaderTimeout,
|
||||
ConnectTimeout: dialTimeout,
|
||||
RequestTimeout: requestTimeout,
|
||||
}
|
||||
|
||||
// Sending snapshot might take a long time so we use a different HTTP transporter
|
||||
@ -54,9 +53,8 @@ func NewTransporter(followersStats *raftFollowersStats, serverStats *raftServerS
|
||||
// average RTT.
|
||||
// It should be equal to (TCP max window size/RTT).
|
||||
sTr := &httpclient.Transport{
|
||||
ConnectTimeout: dialTimeout,
|
||||
RequestTimeout: snapshotTimeout,
|
||||
ReadWriteTimeout: snapshotTimeout,
|
||||
ConnectTimeout: dialTimeout,
|
||||
RequestTimeout: snapshotTimeout,
|
||||
}
|
||||
|
||||
t := transporter{
|
||||
|
Loading…
x
Reference in New Issue
Block a user