diff --git a/vendor.conf b/vendor.conf index 2f86f5daa9a237953f6ccfa46c98e0078971861f..3d8e05e02120d5b988d7338912c43d6af45dccef 100644 --- a/vendor.conf +++ b/vendor.conf @@ -97,7 +97,7 @@ github.com/Graylog2/go-gelf 4143646226541087117ff2f83334ea48b3201841 github.com/fluent/fluent-logger-golang v1.3.0 # fluent-logger-golang deps -github.com/philhofer/fwd 98c11a7a6ec829d672b03833c3d69a7fae1ca972 +github.com/philhofer/fwd bb6d471dc95d4fe11e432687f8b70ff496cf3136 # v1.0.0 github.com/tinylib/msgp 3b556c64540842d4f82967be066a7f7fffc3adad # fsnotify diff --git a/vendor/github.com/philhofer/fwd/reader.go b/vendor/github.com/philhofer/fwd/reader.go index e5919103063e1f1416703a133bef8ebffa8d016a..75be62ab09b5bb7077d95ddd385dd5dded660143 100644 --- a/vendor/github.com/philhofer/fwd/reader.go +++ b/vendor/github.com/philhofer/fwd/reader.go @@ -109,6 +109,10 @@ func (r *Reader) more() { if a == 0 && r.state == nil { r.state = io.ErrNoProgress return + } else if a > 0 && r.state == io.EOF { + // discard the io.EOF if we read more than 0 bytes. + // the next call to Read should return io.EOF again. + r.state = nil } r.data = r.data[:len(r.data)+a] }