using end-of-stream to detect stream close
using end-of-stream 0.1.2
v0.2.1