Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Websocket doesn't reconnect #216

Open
1 of 4 tasks
calj opened this issue Jul 15, 2020 · 3 comments
Open
1 of 4 tasks

Websocket doesn't reconnect #216

calj opened this issue Jul 15, 2020 · 3 comments
Labels

Comments

@calj
Copy link
Contributor

calj commented Jul 15, 2020

Issue type

  • bug
  • missing functionality
  • performance
  • feature request

Brief description

The websocket connection doesn't reconnect after heartbeat failure

Steps to reproduce

  • Heatbeat timeout
  • Expect: the websocket to reconnect
  • Actual: there is no attempt to reconnect
Additional Notes:
  • Connection parameters:
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
  • Logs of heartbeat disconnection:
2020/07/15 07:52:58 heartbeat disconnect: heartbeat disconnect on channel 127518 expired at 2020-07-15 07:52:55.544034174 +0000 UTC m=+68428.569056686 (30s timeout)
2020/07/15 07:52:58 restarting socket (id=0) connection
2020/07/15 07:52:58 heartbeat disconnect: heartbeat disconnect on channel 127520 expired at 2020-07-15 07:52:57.696510702 +0000 UTC m=+68430.721533217 (30s timeout)
2020/07/15 07:52:58 heartbeat disconnect: heartbeat disconnect on channel 127522 expired at 2020-07-15 07:52:55.54404183 +0000 UTC m=+68428.569064344 (30s timeout)
2020/07/15 07:52:58 heartbeat disconnect: heartbeat disconnect on channel 126566 expired at 2020-07-15 07:52:55.544025443 +0000 UTC m=+68428.569047959 (30s timeout)
2020/07/15 07:52:58 heartbeat disconnect: heartbeat disconnect on channel 127516 expired at 2020-07-15 07:52:55.544030191 +0000 UTC m=+68428.569052706 (30s timeout)
2020/07/15 07:52:58 heartbeat disconnect: heartbeat disconnect on channel 127517 expired at 2020-07-15 07:52:55.544032253 +0000 UTC m=+68428.569054766 (30s timeout)
2020/07/15 07:52:58 heartbeat disconnect: heartbeat disconnect on channel 127519 expired at 2020-07-15 07:52:57.296680943 +0000 UTC m=+68430.321703456 (30s timeout)
2020/07/15 07:52:58 heartbeat disconnect: heartbeat disconnect on channel 127521 expired at 2020-07-15 07:52:55.544039792 +0000 UTC m=+68428.569062307 (30s timeout)
2020/07/15 07:52:58 heartbeat disconnect: heartbeat disconnect on channel 127485 expired at 2020-07-15 07:52:57.676450146 +0000 UTC m=+68430.701472661 (30s timeout)
2020/07/15 07:53:03 socket (id=0) took too long to close.
@JacobPlaster
Copy link
Contributor

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

@calj
Copy link
Contributor Author

calj commented Jul 30, 2020

@JacobPlaster
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
@calj @JacobPlaster and others