cmux
cmux copied to clipboard
do not propagate "use of closed conn" error if expected
There's unfortunately no way (AFAIK) of actively interrupting a
net.Listener.Accept() call, so we have to deal with it erroring out if/when
its net.Listener is closed (see #39).
Unfortunately(2) there's also no better way of matching the low-level error than string checks, since it is not exported by the stdlib.
with never version of go you can do errors.Is and such error already public exported
hi @vtolstov
~Not sure I understand what you mean. Go 1.18 still hasn't exported the underlying error. (note the internal path)~
~Or am I missing something? :thinking:~
(nevermind; see below)