Check if the buffered messages exceed
a specific amount - in that case, disconnect the client
to prevent DoS.
In this case we check if there are >= 1000 messages
or length(of all messages) >= 1000000 bytes.