The frame parsing code parses in two stages - headers, which tells you the body length, and the body itself. If the body was < 8 bytes (the standard frame header size) we'd end up skipping the body parse until we accumulated at least 8 bytes worth of material.
The fix is simple - move the "frame header size" check into the frame header portion of the parsing code.
The frame parsing code parses in two stages - headers, which tells you the body length, and the body itself. If the body was < 8 bytes (the standard frame header size) we'd end up skipping the body parse until we accumulated at least 8 bytes worth of material.
The fix is simple - move the "frame header size" check into the frame header portion of the parsing code.