arduino-libraries / ArduinoHttpClient

Arduino HTTP Client library
282 stars 170 forks source link

client.get(buff) causes freeMemory to drop significantly, .stop() doesn't release #162

Closed JEG8 closed 10 months ago

JEG8 commented 10 months ago

Hi,

I am facing an issue with this library where I make a very simple call of client.get(buff), where buff is defined as the path for my server. My freeMemory (between heap and stack) drops by 1.5K when this call happens. I am assuming the memory is being claimed by something in this library. When I call client.stop(), the memory is not released. This makes it very difficult to use in a system where memory is critical.

Is there any reason why this would happen? Is there a recommended method to prevent this drop?

Thanks for any help in advance.

JEG8 commented 10 months ago

See https://github.com/JAndrassy/ArduinoOTA/issues/228#issue-1992939609 for solution