fix rpc bug by resetting buffer
peer can connect and talk