Skip to content

Commit 2dcfea3

Browse files
committed
Make broken pipe re case insensitive
1 parent eecdd22 commit 2dcfea3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var (
2222
ErrTimeoutWaitingForCall = errors.New("timed out waiting for call to complete")
2323
)
2424

25-
var brokenPipeRe = regexp.MustCompile("Broken pipe|pipe is being closed")
25+
var brokenPipeRe = regexp.MustCompile("(?i)broken pipe|pipe is being closed")
2626

2727
func newConn(cmd *exec.Cmd, timeout time.Duration) (_ conn, err error) {
2828
in, err := cmd.StdinPipe()

0 commit comments

Comments
 (0)