hashicorp / yamux

Golang connection multiplexing library
Mozilla Public License 2.0
2.19k stars 232 forks source link

at stream read/write wrap underlying error to returned error #92

Open apmattil opened 3 years ago

apmattil commented 3 years ago

I need to recover from errors when connection is broken. So there should be some way to check why the session was closed at client side. e.g

[ERR] yamux: Failed to read header: read tcp 10.0.1.10:55190->10.0.3.20:443: read: connection timed out

now read() and write() just return io.EOF