use read_mysqlpacket() insted of connection.read_packet()