Tags: cesanta/mjs
Tags
Fix stack overflow when serving http files on ESP8266 ESP8266 non-OS has very limited stack - only 4K. Undetected stack overflows cause nasty bugs and it turns out serving files over http routinely causes stack overflow. This was exposed by cesanta/mongoose-os@a5f5912 As a short-term workaround, push http_message into bss, this is enough as an immediate workaround. Longer term, we need to think how to bring 8266 to parity with other platforms where we have at least 8K stack. At the same time, get rid of the compiler bug workaround - modern toolchain doesn't need this. PUBLISHED_FROM=5c850ad4df34b5e69c35be1fa3e00f9271a7da3b
Fix stack overflow when serving http files on ESP8266 ESP8266 non-OS has very limited stack - only 4K. Undetected stack overflows cause nasty bugs and it turns out serving files over http routinely causes stack overflow. This was exposed by cesanta/mongoose-os@a5f5912 As a short-term workaround, push http_message into bss, this is enough as an immediate workaround. Longer term, we need to think how to bring 8266 to parity with other platforms where we have at least 8K stack. At the same time, get rid of the compiler bug workaround - modern toolchain doesn't need this. PUBLISHED_FROM=5c850ad4df34b5e69c35be1fa3e00f9271a7da3b
PreviousNext