add io.ErrUnexpectedEOF for config retriable errors (#12309)

fixes #12307
This commit is contained in:
Harshavardhana
2021-05-17 15:13:14 -07:00
committed by GitHub
parent 3d9873106d
commit a096a92c63

View File

@@ -22,6 +22,7 @@ import (
"crypto/tls"
"errors"
"fmt"
"io"
"math/rand"
"net"
"os"
@@ -264,6 +265,7 @@ func configRetriableErrors(err error) bool {
errors.Is(err, context.DeadlineExceeded) ||
errors.Is(err, errErasureWriteQuorum) ||
errors.Is(err, errErasureReadQuorum) ||
errors.Is(err, io.ErrUnexpectedEOF) ||
errors.As(err, &rquorum) ||
errors.As(err, &wquorum) ||
isErrBucketNotFound(err) ||