server can not send all file contents to client