Skip to content

Commit

Permalink
Update metrics & ema before breaking the connection loop (#4414)
Browse files Browse the repository at this point in the history
* Update metrics and ema before breaking connection loop
  • Loading branch information
lijunwangs authored Jan 14, 2025
1 parent 84415ce commit 83919b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions streamer/src/nonblocking/quic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1167,6 +1167,8 @@ async fn handle_connection(
CONNECTION_CLOSE_CODE_INVALID_STREAM.into(),
CONNECTION_CLOSE_REASON_INVALID_STREAM,
);
stats.total_streams.fetch_sub(1, Ordering::Relaxed);
stream_load_ema.update_ema_if_needed();
break 'conn;
}
}
Expand Down

0 comments on commit 83919b8

Please sign in to comment.