Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/proto/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ where
// This is handled by resetting the frame then trying to read
// another frame.
Err(Error::Reset(id, reason, initiator)) => {
#[cfg(not(fuzzing))]
debug_assert_eq!(initiator, Initiator::Library);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nox do you recall why this is asserted? If it's Remote, should something else be done? This is getting trigger in fuzzing.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is done because from my understanding of the code back then this path should never be taken with Initiator::Remote, can you repro how it does happen?

tracing::trace!(?id, ?reason, "stream error");
self.streams.send_reset(id, reason);
Expand Down
1 change: 1 addition & 0 deletions src/proto/streams/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ impl Drop for Store {
fn drop(&mut self) {
use std::thread;

#[cfg(not(fuzzing))]
if !thread::panicking() {
debug_assert!(self.slab.is_empty());
}
Expand Down