tor-proto channel padding: Document PADDING_NEGOTIATE overwriting

As per
  https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/657#note_2825979
This commit is contained in:
Ian Jackson 2022-08-08 15:33:07 +01:00
parent 1104235ee5
commit 481bf0bbe9
1 changed files with 3 additions and 0 deletions

View File

@ -278,6 +278,9 @@ impl<S: SleepProvider> Reactor<S> {
}
}
if let Some(padding_negotiate) = padding_negotiate {
// This replaces any previous PADDING_NEGOTIATE cell that we were
// told to send, but which we didn't manage to send yet.
// It doesn't make sense to queue them up.
self.special_outgoing.padding_negotiate = Some(padding_negotiate.clone());
}
}