aboutsummaryrefslogblamecommitdiffhomepage
path: root/vendor/github.com/aws/aws-sdk-go/aws/request/connection_reset_error.go
blob: d9b37f4d32ad08be83974d38db738771c7ee8019 (plain) (tree)
1
2
3
4
5
6
7


               
                 


                                           






                                                                    



                    
package request

import (
	"strings"
)

func isErrConnectionReset(err error) bool {
	if strings.Contains(err.Error(), "read: connection reset") {
		return false
	}

	if strings.Contains(err.Error(), "connection reset") ||
		strings.Contains(err.Error(), "broken pipe") {
		return true
	}

	return false
}