Anyway,
GET requests testGet1 = function() {} worked fine every 30 seconds even when the service was down.
POST requests in other hand, I tried requests every 130 seconds for more than 10 hours when the service was up. I started with 666 free memory and finished with 451. This leak occurred only once, from 666 to 451 with "no response" message.
There were more "no response" messages but the leak occurred only on one of them.
I will do the same test with POST requests, service down, 5 minutes interval and see if still there any memory leak.
Is there a way to specify a 30 seconds timeout in the GET/POST requests from http module?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
The default timeout seems to be 120 seconds? from simcom.
https://simcom.ee/documents/SIM808/SIM800%20Series_AT%20Command%20Manual_V1.09.pdf
Anyway,
GET requests
testGet1 = function() {}
worked fine every 30 seconds even when the service was down.POST requests in other hand, I tried requests every 130 seconds for more than 10 hours when the service was up. I started with 666 free memory and finished with 451. This leak occurred only once, from 666 to 451 with "no response" message.
There were more "no response" messages but the leak occurred only on one of them.
I will do the same test with POST requests, service down, 5 minutes interval and see if still there any memory leak.
Is there a way to specify a 30 seconds timeout in the GET/POST requests from http module?
Thank you.