mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-24 12:13:05 +00:00
Fix the spin bit becoming immediately disabled for servers
We were disabling it every time we updated the remote CID, and we like to update the remote CID ASAP for servers to enable client-side stateless resets. Instead, we should disable it only when switching remote CIDs due to a migration.
This commit is contained in:
@@ -2574,6 +2574,7 @@ impl Connection {
|
||||
self.migrate(now, remote);
|
||||
// Break linkability, if possible
|
||||
let _ = self.update_rem_cid();
|
||||
self.spin = false;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
@@ -2631,9 +2632,6 @@ impl Connection {
|
||||
reset_token,
|
||||
));
|
||||
self.peer_params.stateless_reset_token = Some(reset_token);
|
||||
|
||||
// Reduce linkability
|
||||
self.spin = false;
|
||||
}
|
||||
|
||||
/// Issue an initial set of connection IDs to the peer
|
||||
|
||||
Reference in New Issue
Block a user