summaryrefslogtreecommitdiff
path: root/go.mod
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2021-03-16 15:16:03 +0000
committerGrégoire Duchêne <gduchene@awhk.org>2021-03-16 15:16:03 +0000
commitf06b2f85e8b1158bd63c7ed4d918770626d99545 (patch)
tree5c3623e265e0ebc21cacc890e478f8868c63f86e /go.mod
parentae2def146399745a8dba5113d5e1b57292a258e8 (diff)
PipeListenerDialer.Close should be called once
PipeListenerDialer.Close will return unix.EINVAL if it is called more than once. This is to emulate the behavior of other standard listeners. Also: * PipeListenerDialer.Accept will return (nil, unix.EINVAL) if the listener is closed. This roughly matches with behavior described in accept(2). * PipeListenerDialer.Dial will also return (nil, unix.EINVAL) if the address passed does not match the one passed to New. It will also return (nil, unix.ECONNREFUSED) if the listener is closed. This roughly matches the behavior described in connect(2) and unix(7). * The custom errors ErrBadAddress and ErrClosed are removed.
Diffstat (limited to 'go.mod')
-rw-r--r--go.mod5
1 files changed, 4 insertions, 1 deletions
diff --git a/go.mod b/go.mod
index e6f2ddd..e9bef6d 100644
--- a/go.mod
+++ b/go.mod
@@ -2,4 +2,7 @@ module go.awhk.org/pipeln
go 1.15
-require github.com/stretchr/testify v1.7.0
+require (
+ github.com/stretchr/testify v1.7.0
+ golang.org/x/sys v0.0.0-20210316092937-0b90fd5c4c48
+)