weixin_39633500
weixin_39633500
2020-12-02 03:26

do not reconnect automatically once got InfoEvent : "Stopping. Please try to reconnect"

{Version:0 ServerId: Platform:{Status:0} Code:20051 Msg:Stopping. Please try to reconnect}

Issue type

  • [ X] bug
  • [ ] missing functionality
  • [ ] performance
  • [ ] feature request

Brief description

once the websocket received an InfoEvent like this : {Version:0 ServerId: Platform:{Status:0} Code:20051 Msg:Stopping. Please try to reconnect} then the connection lost, but it do not reconnect automatically. Any sugguestion?

Steps to reproduce

  • just let the code run at there, do nothing. Once server push such InfoEvent, then the connection lost and do not autoreconnect.
Additional Notes:

该提问来源于开源项目:bitfinexcom/bitfinex-api-go

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

8条回答

  • weixin_39801475 weixin_39801475 5月前

    Hey illl try to reproduce these issues now. Thanks for raising them

    点赞 评论 复制链接分享
  • weixin_39801475 weixin_39801475 5月前

    Ok I did manage to find the bug that you are referring to, it seems like it only causes a problem when the socket has no subscriptions (like you said) and is not authenticated. Ill create a fix for this now.

    TOOOOOOOOOOOOOOOOOO MANY BUGS in recent version

    We had to completely rework the websocket implementation to include a multiplexer so if there are any other bugs that you know of please let me know now.

    点赞 评论 复制链接分享
  • weixin_39801475 weixin_39801475 5月前

    Update, all problems stated above are fixed. Im just finishing a new feature before I open the PR

    点赞 评论 复制链接分享
  • weixin_39801475 weixin_39801475 5月前

    It seems that the server will disconnect proactively once websocket connected, before any subscription

    This bug has always been there, the only difference is the new version wasnt reconnecting afterwards. Ive made the fix to reconnect and also the original proactive disconnect

    点赞 评论 复制链接分享
  • weixin_39801475 weixin_39801475 5月前

    fixed in https://github.com/bitfinexcom/bitfinex-api-go/pull/189

    点赞 评论 复制链接分享
  • weixin_39633500 weixin_39633500 5月前

    OK, thank you!

    but I'm a little afraid to use the latest version. I will use the old one, since it has been tested, should work well for me for a while.

    Anyway, thank you very much!

    点赞 评论 复制链接分享
  • weixin_39633500 weixin_39633500 5月前

    TOOOOOOOOOOOOOOOOOO MANY BUGS in recent version, it is so hard to blame ..................

    BUG太多,无力吐槽!!!

    点赞 评论 复制链接分享
  • weixin_39633500 weixin_39633500 5月前

    It seems that the server will disconnect proactively once websocket connected, before any subscription made.

    At the moment, your heratbeat checking based on subscription not work yet. Then the connection is keeping closed, and can not reconnect automatically.

    Dame your upgrading without test with sdk!!!!

    点赞 评论 复制链接分享

相关推荐