gocircuit / circuit

Circuit: Dynamic cloud orchestration http://gocircuit.org
Apache License 2.0
1.98k stars 160 forks source link

Propagate "EOF" error as io.EOF #16

Closed fourcube closed 9 years ago

fourcube commented 9 years ago

When the WriteCloser of a channel is closed, the Reader receives an "EOF" error that is not equal to io.EOF. This makes ioutil.ReadAll return an "EOF" error even though it's documentation says, it should not do so.

A demo for this problem is available here.