hashicorp / yamux

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

yamux: Invalid protocol version: 123 #110

Closed da-tai closed 2 years ago

da-tai commented 2 years ago

How do I fix this issue? Regular io.copy with net.Listen and net.Dial works but when trying net.Listen and session.Open(stream), I get the error yamux: Invalid protocol version: 123

io.Copy(conn, remote) go io.Copy(remote,conn)

Works

io.Copy(conn, stream) go io.Copy(stream ,conn)

yamux: Invalid protocol version: 123