DEFAULT_MAX_MESSAGE_LENGTH

Default ceiling on a single decoded message body. A piece message is 9 + block_size; with the protocol-max 16 KiB block plus headroom for an unusually large bitfield this 1 MiB cap is comfortably above anything a conforming peer sends while bounding a hostile allocation.