chore(deps): bump golang.org/x/net from 0.7.0 to 0.17.0 (#5940)

Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>
This commit is contained in:
hongzhouzi
2023-10-12 01:56:08 -05:00
committed by GitHub
parent 5c3ecd0407
commit cc6dde41d7
31 changed files with 7236 additions and 1776 deletions

View File

@@ -88,13 +88,9 @@ func (p *pipe) Write(d []byte) (n int, err error) {
p.c.L = &p.mu
}
defer p.c.Signal()
if p.err != nil {
if p.err != nil || p.breakErr != nil {
return 0, errClosedPipeWrite
}
if p.breakErr != nil {
p.unread += len(d)
return len(d), nil // discard when there is no reader
}
return p.b.Write(d)
}