8000 use of closed network connection socket error read tcp XXXXXXX: use of closed network connection · Issue #708 · ccxt/go-binance · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
use of closed network connection socket error read tcp XXXXXXX: use of closed network connection #708
Open
@druphliu

Description

@druphliu

When subscribing to k-line data using the method futures.WsContinuousKlineServe, this error often occurs, causing the WebSocket (ws) connection to be interrupted. I have tried to ensure reconnection through the following methods,

for { doneC, _, err := futures.WsContinuousKlineServe(&futures.WsContinuousKlineSubscribeArgs{ Pair: symbol, ContractType: "PERPETUAL", Interval: interval, }, wsKlineHandler, errHandler) if err != nil { continue } <-doneC time.Sleep(time.Second * 10) }

but there is a problem. That is, the pushed data is lost during the reconnection process. How can this be solved?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0