For old incompatible connections, set the correct protocol version on the version async var

This commit is contained in:
A.J. Beamon 2021-04-21 11:54:05 -07:00
parent 9e89159efb
commit 28f8a2716e
1 changed files with 1 additions and 1 deletions

View File

@ -1217,7 +1217,7 @@ ACTOR static Future<Void> connectionReader(TransportData* transport,
if (!protocolVersion.hasMultiVersionClient()) {
// Older versions expected us to hang up. It may work even if we don't hang up here, but
// it's safer to keep the old behavior.
peer->protocolVersion->set(peerProtocolVersion);
peer->protocolVersion->set(protocolVersion);
throw incompatible_protocol_version();
}
} else {