Coder Social home page Coder Social logo

Comments (8)

liiuzhenzhou11 avatar liiuzhenzhou11 commented on May 9, 2024

是啊 不超时,有时候程序卡死

from hutool.

looly avatar looly commented on May 9, 2024

HttpRequest.get(url).timeout(10000).execute().body()

HttpRequest.post(url).timeout(10000).execute().body()

from hutool.

iteming avatar iteming commented on May 9, 2024

设置了,然而根本无效,4.5.6

from hutool.

mg0324 avatar mg0324 commented on May 9, 2024

我也遇到了,设置了超时,但是一直不超时,把线程独占了

from hutool.

mg0324 avatar mg0324 commented on May 9, 2024

版本5.4.3

from hutool.

ImSingee avatar ImSingee commented on May 9, 2024

版本 5.5.4 在 Linux 环境下遇到了超时无效的问题

from hutool.

looly avatar looly commented on May 9, 2024

此方法本质上是设置:

HttpURLConnection urlCon = (HttpURLConnection)url.openConnection();
urlCon.setConnectTimeout();
urlCon.setReadTimeout(); 

具体为啥无效暂时无法测试也未找到原因。欢迎提供思路。

from hutool.

ImSingee avatar ImSingee commented on May 9, 2024

@looly 确实很奇怪,我在 Mac 上是可以正常超时的,jar 包放在 Linux(CentOS 8.2.2004)运行就不行

from hutool.

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.