bitfinexcom / bitfinex-api-go

BITFINEX Go trading API - Bitcoin, Litecoin, and Ether exchange
https://www.bitfinex.com/
MIT License
303 stars 222 forks source link

Websocket doesn't reconnect #216

Open calj opened 3 years ago

calj commented 3 years ago

Issue type

Brief description

The websocket connection doesn't reconnect after heartbeat failure

Steps to reproduce

Additional Notes:
2020/07/15 08:51:07 ----Bitfinex Client Parameters----
2020/07/15 08:51:07 AutoReconnect=true
2020/07/15 08:51:07 CapacityPerConnection=%!t(int=25)
2020/07/15 08:51:07 ReconnectInterval=1s
2020/07/15 08:51:07 ReconnectAttempts=100
2020/07/15 08:51:07 ShutdownTimeout=5s
2020/07/15 08:51:07 ResubscribeOnReconnect=true
2020/07/15 08:51:07 HeartbeatTimeout=30s
2020/07/15 08:51:07 URL=wss://api-pub.bitfinex.com/ws/2
2020/07/15 08:51:07 ManageOrderbook=false
2020/07/15 08:51:07 connecting ws to %s wss://api-pub.bitfinex.com/ws/2
JacobPlaster commented 3 years ago

Thanks again @calj we will will take a look into this one too

calj commented 3 years ago

This problem might be caused by this missing unlock: https://github.com/bitfinexcom/bitfinex-api-go/pull/219/files#diff-93015be9a1b3ee72156236756317284dR332

JacobPlaster commented 3 years ago

Nice spot @calj. Merged your PR, could you retry?