pushrax/node-rcon — pull request #4 by fastrde (2013-08-07 16:36:39+00:00)
Title: Add ability to read rcon-packages across buffers

Hello again,

when you to much traffic on the wire (for example: extensive logging enabled on server), it can happen that your buffer is too small. If you parse the rcon header of the last (possibly cut off) packet you can run in an buffer underflow.

The patch checks the bytes left in the buffer before reading the next rcon packet and when the number of bytes is too small it waits for the next buffer to concat.

lg

fastrde