ErrReadTimeout

ss2022-leak
风扇滑翔翼 2025-09-20 08:07:17 +00:00 committed by GitHub
parent 8bec31a035
commit 5f86aafc93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -51,9 +51,9 @@ func (w *PipeConnWrapper) Read(b []byte) (n int, err error) {
case result := <-c:
return result.n, result.err
case <-time.After(300 * time.Second):
common.Interrupt(w.R)
common.Close(w.R)
return 0, io.EOF
common.Interrupt(w.R)
return 0, buf.ErrReadTimeout
}
}