Cap `MessageStream` buffer size to 1MB
We temporarily let it grow when the message size exceed the limit, but restore the buffer's capacity shortly after. This ensures that, for each connection in its entire lifetime, we only ever use 1MB.
A
Antonio Scandurra committed
339069b1d38774702da27236dbb791745db1ecd5
Parent: da46d78