Coder Social home page Coder Social logo

Comments (2)

myarth avatar myarth commented on August 17, 2024

这样处理确实可以解决在网络状况不好的情况下会出现多个连接的场景;

这段日志也说明了,当 17:58:41,419 WatchDog 尝试去获取新的连接,但在下1s 17:58:42,419 前 com.huobi.client.impl.RestApiInvoker#createWebSocket 没能 com.huobi.client.impl.WebSocketConnection#onOpen 更新 state = ConnectionState.CONNECTED; 由于网络情况不佳也没能发生异常 com.huobi.client.impl.WebSocketConnection#onFailure 更新 state = ConnectionState.CLOSED_ON_ERROR;
导致该次也发生了重连;

17:58:25,419 [pool-1-thread-1] WARN c.h.client.impl.WebSocketConnection - [Sub][0] Reconnecting after 15 seconds later
17:58:41,419 [pool-1-thread-1] INFO c.h.client.impl.WebSocketConnection - [Sub][0] Connecting...
17:58:42,419 [pool-1-thread-1] INFO c.h.client.impl.WebSocketConnection - [Sub][0] Connecting...

from huobi_java.

YXQ212526 avatar YXQ212526 commented on August 17, 2024

sdk 已更新至v2版本

from huobi_java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.