xtaci / smux

A Stream Multiplexing Library for golang with least memory usage(TDMA)
MIT License
1.31k stars 196 forks source link

Stream does not return net.Error for timeouts #75

Open forkner opened 4 years ago

forkner commented 4 years ago

Stream could conform a little more closely to net.Conn by returning a net.Error for timeout errors.

See: https://golang.org/src/net/net.go?#L113 https://golang.org/src/net/net.go?#L394