AlessandroAU / Chorus32-ESP32LapTimer

This is an ESP32 port of the popular Chorus RF Laptimer
GNU General Public License v3.0
86 stars 33 forks source link

Fix udp socket, when a client disconnects #96

Closed Smeat closed 5 years ago

Smeat commented 5 years ago

Whenever a client disconnects (e.g. just disables the WiFi), the socket would get an I/O error and fail on all following reads. This bug existed since at least c49bcb4, so this might affect a bunch of users.

Additionally this uses the sockets directly to avoid ~3K of dynamically allocated memory (~1.5K every call to parsePacket(), so in every iteration of the main loop), which might also cause a bunch of problems.