Break byte reading at end of buffer, to avoid IndexOutOfBounds when server send not terminated data.