diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2021-03-16 15:16:03 +0000 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2021-03-16 15:16:03 +0000 |
| commit | f06b2f85e8b1158bd63c7ed4d918770626d99545 (patch) | |
| tree | 5c3623e265e0ebc21cacc890e478f8868c63f86e /go.sum | |
| parent | ae2def146399745a8dba5113d5e1b57292a258e8 (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.sum')
| -rw-r--r-- | go.sum | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -5,6 +5,8 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +golang.org/x/sys v0.0.0-20210316092937-0b90fd5c4c48 h1:70qalHWW1n9yoI8B8zEQxFJO/D6NUWIX8SNmJO+rvNw= +golang.org/x/sys v0.0.0-20210316092937-0b90fd5c4c48/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= |
