bug fix: don't forget to consume the consumed data
bug fix: don't forget to reset the parser when resetting message
update class Connection
update class ClientConnection, partially implemented