mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-09 19:30:30 +08:00
优化对未知长度内容的缓存长度限制
This commit is contained in:
@@ -25,7 +25,7 @@ func (this *TeeReaderCloser) Read(p []byte) (n int, err error) {
|
||||
n, err = this.r.Read(p)
|
||||
if n > 0 {
|
||||
_, wErr := this.w.Write(p[:n])
|
||||
if err == nil && wErr != nil {
|
||||
if (err == nil || err == io.EOF) && wErr != nil {
|
||||
err = wErr
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user