I am trying to perform the command exec pub, where pub is the name of a server configuration file. All other aspects of the script work. This is the output following the error:
File "/home/albert/programs/ircBot/SRCDS.py", line 215, in rcon_command
return self._any_rcon_response(command)
File "/home/albert/programs/ircBot/SRCDS.py", line 194, in _any_rcon_response
return self._any_rcon_response_hl2(command)[3]
File "/home/albert/programs/ircBot/SRCDS.py", line 205, in _any_rcon_response_hl2
result = self.read_packet()
File "/home/albert/programs/ircBot/SRCDS.py", line 150, in read_packet
packetlen = hldsunpack_int(raw_packetlen)
File "/home/albert/programs/ircBot/SRCDS.py", line 49, in hldsunpack_int
return p.unpack_int()
File "/usr/lib/python2.5/xdrlib.py", line 156, in unpack_int
raise EOFError
The raw_packetlen is empty which is causing the error. I was reading the HL2 rcon standard (http://developer.valvesoftware.com/wiki/Source_RCON_Protocol) and I am guessing that the response is spans multiple packets, though I don't know how to fix this problem.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to perform the command exec pub, where pub is the name of a server configuration file. All other aspects of the script work. This is the output following the error:
File "/home/albert/programs/ircBot/SRCDS.py", line 215, in rcon_command
return self._any_rcon_response(command)
File "/home/albert/programs/ircBot/SRCDS.py", line 194, in _any_rcon_response
return self._any_rcon_response_hl2(command)[3]
File "/home/albert/programs/ircBot/SRCDS.py", line 205, in _any_rcon_response_hl2
result = self.read_packet()
File "/home/albert/programs/ircBot/SRCDS.py", line 150, in read_packet
packetlen = hldsunpack_int(raw_packetlen)
File "/home/albert/programs/ircBot/SRCDS.py", line 49, in hldsunpack_int
return p.unpack_int()
File "/usr/lib/python2.5/xdrlib.py", line 156, in unpack_int
raise EOFError
The raw_packetlen is empty which is causing the error. I was reading the HL2 rcon standard (http://developer.valvesoftware.com/wiki/Source_RCON_Protocol) and I am guessing that the response is spans multiple packets, though I don't know how to fix this problem.