You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[8.x] Move TransportVersion negotiation to handshake (#120261) (#120510)
* Move `TransportVersion` negotiation to handshake (#120261)
Today the `TransportHandshaker` returns the remote node's actual
`TransportVersion`, even if this is an unknown version from some future
release. This is exposed by `Transport.Connection#getTransportVersion`
despite that method's docs saying that the return value is the
`TransportVersion` in use for the connection. The actual version
negotiation doesn't happen until we get around to sending an outbound
message in `OutboundHandler`.
This doesn't matter much today since we only compare versions against
known constants, ordering by ID, so all unknown future versions are
treated equivalently to the current version. But still it's not correct,
and we may need to make this more refined in future.
* Fix
0 commit comments