binance: adjust timeout

This commit is contained in:
c9s 2021-12-30 16:51:30 +08:00
parent 890fb5327a
commit 8995ce2824

View File

@ -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