Fix waiting state in case not enough mysql data

In case there are not enough data to read the entire packet, don't
increment parseOffset with the header length. Wait for the all packet
before moving parseOffset.