15

i'm writing a custom web server for a project (esp32 based)

each 4 connections system crashes (cannot bind socket anymore)

i was so angry with espressif thinking that was their fault (bad implementation of posix sockets)
but is mine...

today i did another code review and I just discovered that i missed a fucking close() in the websockets handler
fuck
fuck
i wasted a month on this issue.

Comments
  • 3
    Somehow similar to a problem I discovered in a self made RADIUS proxy, I forgot to call flush(), and then it sometimes took another half second until the connection has been released. And this was on a performance critical system. The problem was not so obvious because the system appeared to work normal, only the bad delays were an indicator.
Add Comment