[AESH-107]
end of stream should now be detected