Coder Social home page Coder Social logo

Comments (2)

superzmy avatar superzmy commented on July 29, 2024

totally I need a way to http2 sendRquest(...) in a not very good network, sometimes it lose packet so connect will wait seconds until timeout, but if recall in another process it can success quickly.
Now the kuma::HttpRequest::close() and sendRequest in timer seems useless.
And even I force SocketBase::connect timeout_ms to 100ms and close&sendRequest after first400ms is no response come, In rare cases I wait many seconds to get first error Callback and after then the close&sendRequest can tack effect.
So is someway to force destroy socket of HTTP2 in any situation and reconnect?

from kuma.

Jamol avatar Jamol commented on July 29, 2024

Now H2Connection::getConnection is ready to get underlying connection for http2 request, and you can close it with returned connection

from kuma.

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.