Skip to content

Commit

Permalink
Merge pull request #26 from mxinden/feat-dplpmtud
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert authored Jul 10, 2024
2 parents 673216a + c4f03ce commit 2ce8db1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neqo-transport/src/pmtud.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const MTU_SIZES_V6: &[usize] = &[
const MAX_PROBES: usize = 3;
const PMTU_RAISE_TIMER: Duration = Duration::from_secs(600);

#[derive(Debug, PartialEq, Clone)]
#[derive(Debug, PartialEq, Clone, Copy)]
enum Probe {
NotNeeded,
Needed,
Expand Down Expand Up @@ -138,7 +138,7 @@ impl Pmtud {
/// Allows filtering packets without holding a reference to [`Pmtud`]. When
/// in doubt, use [`Pmtud::is_probe`].
pub fn is_probe_filter(&self) -> impl Fn(&SentPacket) -> bool {
let probe_state = self.probe_state.clone();
let probe_state = self.probe_state;
let probe_size = self.probe_size();

move |p: &SentPacket| -> bool { probe_state == Probe::Sent && p.len() == probe_size }
Expand Down

0 comments on commit 2ce8db1

Please sign in to comment.