Code Monkey home page Code Monkey logo

Comments (1)

JerryChin avatar JerryChin commented on June 8, 2024

Hi @chenwei7878,这个问题可能有如下原因:

  1. Persistent connection keep-alive 期间服务端关闭了连接,导致连接失效。
  2. 服务端压力过大,直接断开了连接,有可能处理完请求也有可能没有处理。
  3. 网络连接不稳定,网络层有超时问题。

不过无论哪一种原因都和本仓库代码无关。

对于第 1 种情况可以通过 HttpClientBuilderConfigurer 自定义 HttpClient 的 IdleTimeout 和 KeepAliveTimeout 设置。
对于第 2 和 3 种情况如果是幂等操作的话,可以考虑重试操作。

如果比较熟悉网络原理的话可以同时从网络层分析。

from wechatpay-spring-boot-project.

Related Issues (1)

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.