try to make the client more efficient by enabling reuse (by reading till eof)