Giter VIP home page Giter VIP logo

Comments (6)

YeautyYE avatar YeautyYE commented on July 20, 2024

client在连接server的事件后,很快会触发一次异常,具体信息为【Connection reset by peer 】,server 端的连接处理并没有什么报错,难道是client的异常或者处理顺序导致的?求助~

那证明server还没创建连接就被reset了.尝试下换成chrome浏览器的websocket client来做实验.看是否正常

from netty-websocket-spring-boot-starter.

maning711 avatar maning711 commented on July 20, 2024

我用jmeter模拟websocket发送请求,没有遇到这个报错

from netty-websocket-spring-boot-starter.

YeautyYE avatar YeautyYE commented on July 20, 2024

我用jmeter模拟websocket发送请求,没有遇到这个报错

是否用jmeter模拟的时候,并没有正常关闭连接(发送websocket的关闭操作),而是直接强制断开.
简单的说,这个错误是在连接断开后的读和写操作引起的。

from netty-websocket-spring-boot-starter.

maning711 avatar maning711 commented on July 20, 2024

嗯,其实我怀疑是client那边的开发在操作时可能有两个请求同时打到ws,正好前一个是断开,后一个是读写;jmeter的测试模板是顺序的,所以没问题。。

from netty-websocket-spring-boot-starter.

YeautyYE avatar YeautyYE commented on July 20, 2024

嗯,其实我怀疑是client那边的开发在操作时可能有两个请求同时打到ws,正好前一个是断开,后一个是读写;jmeter的测试模板是顺序的,所以没问题。。

好的

from netty-websocket-spring-boot-starter.

maning711 avatar maning711 commented on July 20, 2024

经过我们排查,发现使用的CMQ的CLB前置策略里有一个75s空闲会自动切断连接,而当时client的心跳逻辑是120秒一次。。。导致没有来得及保活就被切断了,我们自己的逻辑的锅,到此,该问题关闭。感谢 YE

from netty-websocket-spring-boot-starter.

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.