bug fix : reading entire TCP response from device