Git Product home page Git Product logo

Comments (4)

boblemaire avatar boblemaire commented on July 29, 2024

I have had that problem as well. In my application, I was deleting the instance of asyncHTTPrequest after the timeout and then creating a new one for the next operation. When I stopped doing that, the problem went away. It runs for days now with no issues. I'm not inclined to try to debug this as I reached the same conclusion as you that it has to do with AsyncTCP or something below that. I had posted some questions to me-no-dev but got no response.

Right now I'm mulling over changing to using the ESP-IDF client directly to try and get HTTPS. The documentation says it only runs async for HTTPS, but I can just run in a task and let it block for HTTP. The HTTPS is more important to me. I would leave this as is an just make a new client class.

from asynchttprequest.

andreas-provectusalgae avatar andreas-provectusalgae commented on July 29, 2024

Thanks for the quick reply!

The asyncHTTPrequest is a long-living one in our case. However, there are actually two instances.
I was actually thinking of trying if recreating the instances would be more stable. Good to know that it won't.

Unfortunately, in its current state the library is not usable for us :(
I've changed the HTTP requests back to be blocking for now, but I'm really hoping that asynchronous calls will work in the future.

We do need HTTP (rather than HTTPS) though.

from asynchttprequest.

julienaltieri avatar julienaltieri commented on July 29, 2024

Did you end up getting https? I just came across this library and found https crashes it.

from asynchttprequest.

boblemaire avatar boblemaire commented on July 29, 2024

@julienaltieri ,
No, HTTPS is not supported. I suggest using a reverse proxy like nginx on Rpi or equivalent.

from asynchttprequest.

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.