AndrewBelt / hack.chat

a minimal, distraction-free chat application
https://hack.chat/
MIT License
2.39k stars 336 forks source link

Added socket receiver error handling #133

Closed marzavec closed 7 years ago

marzavec commented 7 years ago

The simplest answer is usually the correct one.

This adds error handling to the socket receiver, which will throw an unrecoverable error when the max payload is exceeded. Instead of trying to avoid the error, lets just flush the socket & close it, then move on.