Some more testing :-)
In my http-server an Url was added http://198.168.178.26/get?host=184.168.192.49&path=/
Server uses this information to get data from that server and forwards this to browser.
This works fine, heap was more than 10000 all the time and free memory about 200.
Next opened a websocket on my server and then called the url again.
This ended in a desaster, could see memory going down and got Execution interrupts and after that tons of errors. Even a HW-reset did not help anymore, had to reflash.
Tried to reproduce this error by:
open an url that causes a delay on server for about 10 secs bevor sending response.
during this 10 secs called another page, everything fine
still during this 10 secs called the url mentioned above (the get url) and could see, heap going down to 9800, but memory going down to 78 bevor Out of memory, followed by tons of Execution interrupt. Good news, this time I did'nt have to reflash.
did some more testing and got out of memory and execution error often, but couldn't reproduce the flash corruption
Hope, this is of some help :-)
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.
Some more testing :-)
In my http-server an Url was added http://198.168.178.26/get?host=184.168.192.49&path=/
Server uses this information to get data from that server and forwards this to browser.
This works fine, heap was more than 10000 all the time and free memory about 200.
Next opened a websocket on my server and then called the url again.
This ended in a desaster, could see memory going down and got Execution interrupts and after that tons of errors. Even a HW-reset did not help anymore, had to reflash.
Tried to reproduce this error by:
Hope, this is of some help :-)