Giter VIP home page Giter VIP logo

Comments (8)

stulzq avatar stulzq commented on May 23, 2024

用法有问题?我做了个简单的池的。连接不是不释放而是释放慢,特地用池来控制client实例数量。改为HttpClientFactory暂时不考虑,用那个需要使用Microsoft DI,改造成本太大

from alipay.aopsdk.core.

JHeLiu avatar JHeLiu commented on May 23, 2024

可以使用旧版本的 请求,不一定要用 httpclient来做

from alipay.aopsdk.core.

stulzq avatar stulzq commented on May 23, 2024

旧版本,你说 HttpWebRequest?

from alipay.aopsdk.core.

JHeLiu avatar JHeLiu commented on May 23, 2024

@stulzq 是的 ,大家知道在.NET CORE 下 httpclient有官方BUG ,这个问题 我估计 MS 可能在.NET5上进行修复。因为.NET CORE 3X .NET5才是亲儿子。 当然我猜想的

from alipay.aopsdk.core.

stulzq avatar stulzq commented on May 23, 2024

不要以为HttpClient脱离了HttpClientFactory就是不能用的,自己控制好就行

from alipay.aopsdk.core.

stulzq avatar stulzq commented on May 23, 2024

@stulzq 是的 ,大家知道在.NET CORE 下 httpclient有官方BUG ,这个问题 我估计 MS 可能在.NET5上进行修复。因为.NET CORE 3X .NET5才是亲儿子。 当然我猜想的

你在搞笑呢,HttpWebRequest在Core下才是完全不能用的,因为它必须不断的New,而在Core下它的底层调用了HttpClient,和Framework正好相反,这无疑会必定出现连接数爆掉的问题

from alipay.aopsdk.core.

JHeLiu avatar JHeLiu commented on May 23, 2024

@stulzq 那也太糟糕了

from alipay.aopsdk.core.

stulzq avatar stulzq commented on May 23, 2024

还是上面那句话,我对HttpClient做了处理的,“不要以为HttpClient脱离了HttpClientFactory就是不能用的,自己控制好就行”

from alipay.aopsdk.core.

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.