Skip to content

Commit

Permalink
Make broken pipe re case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Dec 19, 2024
1 parent eecdd22 commit 2dcfea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var (
ErrTimeoutWaitingForCall = errors.New("timed out waiting for call to complete")
)

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

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

0 comments on commit 2dcfea3

Please sign in to comment.