You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm confused about the following clause in the spec:
Metadata Length MUST be equal to the Frame Length minus the sum of the length of the Frame Header and the length of the Frame Payload, if present. If Metadata Length is not equal to this value, the frame is invalid and the receiver MUST send an ERROR[CONNECTION_ERROR] frame and close the underlying transport connection on reception unless the frame's IGNORE flag is set.
I'm finding this confusing because the only way I can imagine that this clause would apply is if the metadata length is too large such that there aren't enough bytes left in the frame. In other words, if metadata length > (frame length - frame header length). When would I find that metadata length is smaller than the frame length - (frame header length + frame payload length)? The frame payload length is given by simply the frame length - frame header length - metadata length. How can I tell the difference between a malformed payload and wrong metadata length?
The text was updated successfully, but these errors were encountered:
I'm confused about the following clause in the spec:
I'm finding this confusing because the only way I can imagine that this clause would apply is if the metadata length is too large such that there aren't enough bytes left in the frame. In other words, if metadata length > (frame length - frame header length). When would I find that metadata length is smaller than the frame length - (frame header length + frame payload length)? The frame payload length is given by simply the frame length - frame header length - metadata length. How can I tell the difference between a malformed payload and wrong metadata length?
The text was updated successfully, but these errors were encountered: