moved discard_leading_iobuf_bytes() out from conditional