Expand description
Extract complete FIX messages from a byte stream.
Constants§
- MAX_
BODY_ LEN - BUG-13/FR-024 (feature 006): a sane maximum declared
BodyLength(tag 9). No legitimate FIX message (including large repeating-group orRawData-bearing ones) approaches this; a connection declaring more is closed instead of growing an unbounded read buffer while waiting for that many bytes to arrive — a straightforward memory-exhaustion DoS vector otherwise reachable pre- or post-Logon on any open acceptor port.
Functions§
- frame_
length - If
bufbegins with at least one complete FIX message, returnOk(Some(total_len))(the byte length of that message). ReturnOk(None)if more bytes are needed, orErrif the start of the buffer cannot be framed (including a declaredBodyLengthbeyondMAX_BODY_LEN).