Closed koraktor closed 15 years ago
This comment has been posted by koraktor, Mar 19, 2009 on Google Code
I will definitely check into this problem. As this may hint at a general expiration of challenges (which is undocumented in Valve's developer wiki) this may also affect other queries and all servers. So I will try to find out more about this and fix it.
This comment has been posted by koraktor, Mar 21, 2009 on Google Code
Ok. I just tried this for normal game servers - their challenges do not expire. Neither server queries nor RCON stopped working. So this is specific to HTLV. Expiration time is about 30 to 40 seconds.
Now about a fix for this. Your suggestion works, but it adds mostly unnecessary
overhead to HLTV RCON communication. Another way is adding a timestamp to the server object (this would additionally increase the need for a seperate HLTVServer
class) which will be used to check the expiration time of the challenge.
Always rechallenge when using RCON HLTV servers
Closed by fdd286b3ab1de2be469ecb45bbd2345288455d9f
PS: You may see that I choose the easy way, taking the overhead of redundant challenges. I think this should be ok for this specific use case.
This issue has been reported by tuorpez, Mar 17, 2009 on Google Code
Hi,
Using steam-condenser to remote control an HLTV server may be funny, here a ruby example (with ed979ed921e27ff0294f4701b29d303d1a5fd8ac):
You will easily understand that this program execute a "status" command on the HLTV server, print the result and wait 20sec before re-execute "status". I have also added this line warn "Current challenge : #{@rcon_challenge}" to the rcon_exec function in goldsrc_socket.rb to print out current challenge.
Here's the result :
As you can see after 40?sec the challenge expire and we can't get any results anymore. We need something to check the validity of the challenge before each commands (a simply timeout can't work properly). So I modifiy a line in goldsrc_socket.rb :
What a better command to check challenge validity than rcon challenge ? ;)
As you can see the challenge is automatically updated after expiration and I always get my results ! At the cost of 2 rcon challenge command for each rcon command...
If you can do better I'm interested !