Spritetm / libesphttpd

NOTE: THIS CODE IS UNMAINTAINED. Please take a look at https://github.com/chmorgan/libesphttpd instead.
125 stars 109 forks source link

Aiee, conn pool overflow! #19

Closed valkuc closed 8 years ago

valkuc commented 8 years ago

I can't figure out why and exactly when this happens, but it looks like some times connection not getting closed/free and after some period of time connection pool gets overflowed. I'm using SDK 1.5.4 and the code snapshot from revision https://github.com/Spritetm/libesphttpd/tree/c1d3c14e6e56ca6c860485324feafa866648d2ea

I will investigate more on this issue and will try to figure out why this happens.

valkuc commented 8 years ago

Okay, I found simple way to reproduce this. Just target your browser to ESP and hold F5 for few seconds (until browser start to refuse loading page). After that connection pool will get full and will never be cleared for new connections until reboot. Huh... DOS atack test failed :)

What is written above is a just quick steps to reproduce my situation, actually same occurs with normal application usage but needs more time.

Spritetm commented 8 years ago

\o/