浏览代码

bump philhofer/fwd v1.0.0

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 6 年之前
父节点
当前提交
b00897d51a
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 1 1
      vendor.conf
  2. 4 0
      vendor/github.com/philhofer/fwd/reader.go

+ 1 - 1
vendor.conf

@@ -97,7 +97,7 @@ github.com/Graylog2/go-gelf 4143646226541087117ff2f83334ea48b3201841
 
 
 github.com/fluent/fluent-logger-golang v1.3.0
 github.com/fluent/fluent-logger-golang v1.3.0
 # fluent-logger-golang deps
 # fluent-logger-golang deps
-github.com/philhofer/fwd 98c11a7a6ec829d672b03833c3d69a7fae1ca972
+github.com/philhofer/fwd bb6d471dc95d4fe11e432687f8b70ff496cf3136 # v1.0.0
 github.com/tinylib/msgp 3b556c64540842d4f82967be066a7f7fffc3adad
 github.com/tinylib/msgp 3b556c64540842d4f82967be066a7f7fffc3adad
 
 
 # fsnotify
 # fsnotify

+ 4 - 0
vendor/github.com/philhofer/fwd/reader.go

@@ -109,6 +109,10 @@ func (r *Reader) more() {
 	if a == 0 && r.state == nil {
 	if a == 0 && r.state == nil {
 		r.state = io.ErrNoProgress
 		r.state = io.ErrNoProgress
 		return
 		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]
 	r.data = r.data[:len(r.data)+a]
 }
 }