when sending from a stream with no length, flush