soheilhy / cmux

Connection multiplexer for GoLang: serve different services on the same port!
Apache License 2.0
2.53k stars 197 forks source link

Fix TestClose for Go10. #56

Closed soheilhy closed 6 years ago

soheilhy commented 6 years ago

Depending on the Go version used, reading from a closed pipe can return net.OpError or io.ErrClosedPipe. Simply check the string content of the error.