Skip to content

Commit

Permalink
Merge pull request #242 from dcantah/swap-to-neterrclosed
Browse files Browse the repository at this point in the history
Assign ErrPipeListenerClosed to net.ErrClosed
  • Loading branch information
dcantah committed Apr 20, 2022
2 parents 1e35b45 + 708df50 commit 5af2f31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -12,6 +12,8 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.17.0'
- run: go test -gcflags=all=-d=checkptr -v ./...

build:
Expand Down
3 changes: 1 addition & 2 deletions pipe.go
Expand Up @@ -89,8 +89,7 @@ const (

var (
// ErrPipeListenerClosed is returned for pipe operations on listeners that have been closed.
// This error should match net.errClosing since docker takes a dependency on its text.
ErrPipeListenerClosed = errors.New("use of closed network connection")
ErrPipeListenerClosed = net.ErrClosed

errPipeWriteClosed = errors.New("pipe has been closed for write")
)
Expand Down

0 comments on commit 5af2f31

Please sign in to comment.