websockets icon indicating copy to clipboard operation
websockets copied to clipboard

Incorrect reporting of PayloadTooBig when reading fragmented messages

Open aaugustin opened this issue 1 year ago • 0 comments

When reading a fragmented message, Protocol.parse decrements max_size as fragments are read.

This can cause a confusing error in Frame.parse:

ConnectionClosedError: sent 1009 (message too big) over size limit (1048576 > 0 bytes); no close frame received

aaugustin avatar Oct 12 '24 13:10 aaugustin