changing dis.read(buffer) functionality to ensure total of serverconnection.bufferSize being read.