Skip to content
Draft
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
6 changes: 3 additions & 3 deletions crates/jmux-proxy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,9 @@ async fn scheduler_task_impl<T: AsyncRead + Unpin + Send + 'static>(task: JmuxSc
Some(internal_msg) = internal_msg_rx.recv() => {
match internal_msg {
InternalMessage::Eof { id } => {
// Remove associated data sender.
data_senders.remove(&id);

let channel = jmux_ctx.get_channel_mut(id).with_context(|| format!("couldn’t find channel with id {id}"))?;
let channel_span = channel.span.clone();
let local_id = channel.local_id;
Expand Down Expand Up @@ -667,9 +670,6 @@ async fn scheduler_task_impl<T: AsyncRead + Unpin + Send + 'static>(task: JmuxSc
debug!("Distant peer EOFed");
});

// Remove associated data sender
data_senders.remove(&id);

match channel.local_state {
JmuxChannelState::Streaming => {},
JmuxChannelState::Eof => {
Expand Down
Loading