Athena wrote:lwip is not open source in sdk_v0.9.5
Are there any plans on changing that? It would be very beneficial for us to be able to rebuild lwip with some different options enabled/disabled and it would allow us to fix the bugs, and there are some. For example, I was recently playing with creating tcp server and it's very easy to reboot the module remotely when you do - each TCP connection consumes 192 bytes of heap for 60 seconds after it's closed, staying in TIME-WAIT state. So all you have to do it to open enough such connections in one minute and you're out of heap. Now LWIP can recycle connections in this state but it will only do that if memp_malloc returns NULL. But that's not working on esp8266 even now when malloc can actually can return NULL. I know at least three workaround for that but that's only because I was able to work on the lwip source. So when it's closed, we won't have that possibility anymore :/