I have Ruby code able to receive really long RCON responses from Source
servers. This works (even for "cvarlist" = 43 packets) almost flawlessly.
But "cvarlist" (and maybe other requests) fails in around 1 of 4 tries. The
problem is that the packet size of the split packets is wrong. It doesn't
show the complete size of the packet, but only until the first zero-byte
(0x00, the end of the first string component). In my experience the second
string component isn't used very often, so the response is a string
terminated by 2 zero-bytes in almost all cases. It's quite interesting that
this error happens when the text of the response is split into the two
strings. Even more interesting is that this happens always in the same
section of the text (for "cvarlist" just in the middle of the description
for "ai_show_connect").
In the moment I'm pretty sure this is a bug in Source as I can't imagine a
purpose of this random behavior.

Regards,
Sebastian "Koraktor" Staudt
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to