Skip to content

Commit

Permalink
Merge pull request #3434 from zkerriga/fix-udp-timouts-ordering-25x
Browse files Browse the repository at this point in the history
Fix Ordering of UDP pending timeouts
  • Loading branch information
mpilquist authored May 16, 2024
2 parents 54ba497 + b9a6d1c commit 8fe0b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io/src/main/scala/fs2/io/udp/AsynchronousSocketGroup.scala
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private[udp] object AsynchronousSocketGroup {
def apply(duration: FiniteDuration)(onTimeout: => Unit): Timeout =
new Timeout(System.currentTimeMillis + duration.toMillis, () => onTimeout)
implicit val ordTimeout: Ordering[Timeout] =
Ordering.by[Timeout, Long](_.expiry)
Ordering.by[Timeout, Long](_.expiry).reverse
}

private class Attachment(
Expand Down

0 comments on commit 8fe0b59

Please sign in to comment.