Git Product home page Git Product logo

Comments (6)

kluyuyu avatar kluyuyu commented on September 18, 2024 1

毕竟线程加入队列以后,执行的线程不一定是马上加入队列的那个线程,而在监控超时用的request却用的是当前的request。

from rop.

dchack avatar dchack commented on September 18, 2024

ServiceRunnable 内部类 会对每个请求找一个线程来处理业务逻辑,包括后续的返回reponse也是这个线程做的,即使阻塞,也应该不会出现A 请求 返回的是B响应吧?

from rop.

laiyuan avatar laiyuan commented on September 18, 2024

kluyuyu说的问题在我这里已经出现,a发的请求超时,b发请求后收到的是a请求的数据。

from rop.

kluyuyu avatar kluyuyu commented on September 18, 2024

我已经将 rop精简成了 60个java类的框架,彻底解决了那些问题,增加了对,上传流的支持。具体的请加 深圳java群③ 190798044

在 2015-03-16 09:27:55,"laiyuan" [email protected] 写道:

kluyuyu说的问题在我这里已经出现,a发的请求超时,b发请求后收到的是a请求的数据。


Reply to this email directly or view it on GitHub.

from rop.

mangotomato avatar mangotomato commented on September 18, 2024

future.get阻塞的是tomcat i/o线程,持有的是当前request。
timeout后,response还是会被flush。
作者的异步不是真正的异步,tomcat i/o线程还是被阻塞了, future.get。

from rop.

MLD1024 avatar MLD1024 commented on September 18, 2024

主要serlve规范中定义生命周期,线程安全的问题 而且tomcat容器会对request 等对象复用 所以异常情况下会对报文混淆的问题

from rop.

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.