Fix bug in file reading where caller will get junk if full read not satisfied.
Fix bug in file reading where caller will get junk if full read not satisfied.

DaemonEngine/Daemon,DaemonEngine/Daemon,DaemonEngine/Daemon,DaemonEngine/Daemon