Skip to content

Commit

Permalink
add back handle frame error / warning
Browse files Browse the repository at this point in the history
  • Loading branch information
“ramfox” committed Jan 7, 2025
1 parent 87d39ec commit e585860
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions iroh-relay/src/server/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,7 @@ impl Actor {
let frame = match maybe_frame {
Some(frame) => frame?,
None => {
tracing::trace!("stream terminated");
return Ok(());
anyhow::bail!("stream terminated");
}
};
match frame {
Expand Down
1 change: 1 addition & 0 deletions iroh/src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1663,6 +1663,7 @@ mod tests {
send.finish().unwrap();
send.stopped().await.unwrap();
recv.read_to_end(0).await.unwrap();
conn.close(0u16.into(), b"");
info!(%i, peer = %peer_id.fmt_short(), "finished");
info!("[server] round {i} done in {:?}", round_start.elapsed());
}
Expand Down

0 comments on commit e585860

Please sign in to comment.