A read of -1 doesn't mean, "there's no data present on this attempt," it means, "the stream is closed and there will never be any data so stop asking."
e fekau 'e hongofulu kae toki fakamo'ui ko e, 'oku ou pehe ke ke 'alu ki he lotu, 'oku ou pehe 'oku pau ke ke