Git Product home page Git Product logo

Comments (4)

wangzheng0822 avatar wangzheng0822 commented on June 10, 2024

我的client端配置:

<bean id="userProfileRpcService" class="com.baidu.jprotobuf.pbrpc.spring.HaRpcProxyFactoryBean"
          p:serviceInterface="com......UserProfileRpcService"
          p:onceTalkTimeout="20000"
          p:lookupStubOnStartup="false"
          p:idleTimeout="600"
          p:keepAlive="true"
          p:shortConnection="false"
          p:threadPoolSize="50"
          p:namingService-ref="remoteEyrieNamingService"/>

from jprotobuf-rpc-socket.

wangzheng0822 avatar wangzheng0822 commented on June 10, 2024

server端配置:

    <util:list id="registerServices">
        <ref bean="userProfileRpcServiceImpl"/>
    </util:list>

    <bean class="com.baidu.jprotobuf.pbrpc.spring.RpcServiceExporter"
          p:servicePort="...."
          p:acceptorThreads="1"
          p:workThreads="15"
          p:registerServices-ref="registerServices"/>`

from jprotobuf-rpc-socket.

jhunters avatar jhunters commented on June 10, 2024

我的理解是链接建立之后一直保持着呀,为什么60s后会断掉(貌似是被客户端关闭的) 应该是服务端关闭的,RpcServerOptions有几个参数需要注意 readerIdleTime writerIdleTime keepAliveTime 对应的就是读空闲关闭,写空闲关闭与 读写空闲关闭 目默认值是 60s

from jprotobuf-rpc-socket.

wangzheng0822 avatar wangzheng0822 commented on June 10, 2024

哦哦 明白了 刚也看了代码 清楚了 多谢了

from jprotobuf-rpc-socket.

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.