Skip to content

Commit

Permalink
Break linkability on client-side after planned migration
Browse files Browse the repository at this point in the history
(See bug #1803 for the server-side case.)
  • Loading branch information
nemethf authored and Ralith committed Apr 4, 2024
1 parent 21499cd commit e28a7f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions quinn/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -915,8 +915,8 @@ impl State {
) -> Result<(), ConnectionError> {
loop {
match self.conn_events.poll_recv(cx) {
Poll::Ready(Some(ConnectionEvent::Ping)) => {
self.inner.ping();
Poll::Ready(Some(ConnectionEvent::LocalAddressChanged)) => {
self.inner.local_address_changed();
}
Poll::Ready(Some(ConnectionEvent::Proto(event))) => {
self.inner.handle_event(event);
Expand Down
2 changes: 1 addition & 1 deletion quinn/src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ impl Endpoint {
// Generate some activity so peers notice the rebind
for sender in inner.connections.senders.values() {
// Ignoring errors from dropped connections
let _ = sender.send(ConnectionEvent::Ping);
let _ = sender.send(ConnectionEvent::LocalAddressChanged);
}

Ok(())
Expand Down
2 changes: 1 addition & 1 deletion quinn/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ enum ConnectionEvent {
error_code: VarInt,
reason: bytes::Bytes,
},
LocalAddressChanged,
Proto(proto::ConnectionEvent),
Ping,
}

#[derive(Debug)]
Expand Down

0 comments on commit e28a7f2

Please sign in to comment.