[MOSYNC-2925] Read until EOF.