mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
binance: adjust timeout
This commit is contained in:
parent
890fb5327a
commit
8995ce2824
|
@ -49,8 +49,8 @@ var defaultDialer = &websocket.Dialer{
|
|||
// - the re-connector calls connect() to create the new connection object, go to the 1 step.
|
||||
// When stream.Close() is called, a close message must be written to the websocket connection.
|
||||
|
||||
const readTimeout = 1 * time.Minute
|
||||
const writeTimeout = 10 * time.Second
|
||||
const readTimeout = 3 * time.Minute
|
||||
const writeTimeout = 15 * time.Second
|
||||
const pingInterval = readTimeout / 3
|
||||
const listenKeyKeepAliveInterval = 10 * time.Minute
|
||||
const reconnectCoolDownPeriod = 15 * time.Second
|
||||
|
|
Loading…
Reference in New Issue
Block a user