If the requested amount of bytes was not read, assume end of stream