conqp / rcon

Python RCON client library
GNU General Public License v3.0
83 stars 15 forks source link

Wait for auth response packet #3

Closed SvanT closed 3 years ago

SvanT commented 3 years ago

According to the specification here: https://developer.valvesoftware.com/wiki/Source_RCON_Protocol there should always be a SERVERDATA_RESPONSE_VALUE coming before SERVERDATA_AUTH_RESPONSE which is the packet we are waiting for. This is also the behavior I see when running it with a CS:GO server. With the current implementation I always get RequestIdMismatch for any command after auth as the socket requests are out of sync. This fixes the issue for me.

conqp commented 3 years ago

I initially wrote this RCON client for Minecraft. I will test your patch asap and report back whether is works with Minecraft or breaks it.