Skip to content

Commit

Permalink
test case for triggering the crash
Browse files Browse the repository at this point in the history
  • Loading branch information
KershawChang committed Mar 11, 2024
1 parent baa9b52 commit cad33f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion neqo-transport/src/connection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1938,7 +1938,6 @@ impl Connection {

let path = close.path().borrow();
if path.is_temporary() {
debug_assert!(false, "Path is not permanent");
return Err(Error::InternalError);
}
let (_, mut builder) = Self::build_packet_header(
Expand Down
5 changes: 5 additions & 0 deletions neqo-transport/src/connection/tests/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use std::{
cell::RefCell,
mem,
net::{IpAddr, Ipv6Addr, SocketAddr},
rc::Rc,
time::{Duration, Instant},
Expand Down Expand Up @@ -897,6 +898,10 @@ fn retire_prior_to_migration_failure() {
..
}
));

// See issue #1697. We had a crash when the client had a temporary path and
// process_output is called.
mem::drop(client.process_output(now()));
}

/// The timing of when frames arrive can mean that the migration path can
Expand Down

0 comments on commit cad33f9

Please sign in to comment.