Giter Club home page Giter Club logo

Comments (8)

sofkyle avatar sofkyle commented on May 5, 2024

你这是打了断点,然后访问超时

from alibaba-rsocket-broker.

AhianZhang avatar AhianZhang commented on May 5, 2024

你这是打了断点,然后访问超时

我是在 IDEA 中直接 Run 的,没打断点没 Debug

from alibaba-rsocket-broker.

sofkyle avatar sofkyle commented on May 5, 2024

@AhianZhang 建议具体确认下发生了啥,因为超时时间是65s,跟6小时没关系

from alibaba-rsocket-broker.

linux-china avatar linux-china commented on May 5, 2024

这个错误是对的。 目前的配置是 13 x 5 也就是65秒。 @xiazuojie 会和我一起看一下,他之前解决过这个问题。

clientRSocketFactory
                    .keepAlive(Duration.ofSeconds(5), Duration.ofSeconds(5), 12)

from alibaba-rsocket-broker.

linux-china avatar linux-china commented on May 5, 2024

目前有两个小问题,一个是requester要感知服务端关闭啦, 如下:
rsocket/rsocket-java#603

另外一个是keep alive的问题:
rsocket/rsocket-java#712

from alibaba-rsocket-broker.

linux-china avatar linux-china commented on May 5, 2024

目前的解决方案是在LoadBalancedRSocket添加一个 startHealthCheckTimer() ,会进行每15秒钟的连接检查,如果连接不可用,会重新创建连接 c3e5ea4

from alibaba-rsocket-broker.

linux-china avatar linux-china commented on May 5, 2024

客户端在调用请求时,如果是ClosedChannelException,则进行两个操作: 将失败的连接删除并尝试重新连接,然后调用retry函数,拿到新的连接然后进操作。

from alibaba-rsocket-broker.

linux-china avatar linux-china commented on May 5, 2024

新的LoadBalancedRSocket已经添加了连接健康度检查,同时在调用的时候出现连接错误也会重试。 如果还出现这个错误,告知一下 :) https://github.com/alibaba/alibaba-rsocket-broker/blob/master/alibaba-rsocket-core/src/main/java/com/alibaba/rsocket/loadbalance/LoadBalancedRSocket.java

from alibaba-rsocket-broker.

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.