Skip to content

Commit 8fe0b59

Browse files
authored
Merge pull request #3434 from zkerriga/fix-udp-timouts-ordering-25x
Fix Ordering of UDP pending timeouts
2 parents 54ba497 + b9a6d1c commit 8fe0b59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

io/src/main/scala/fs2/io/udp/AsynchronousSocketGroup.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ private[udp] object AsynchronousSocketGroup {
9292
def apply(duration: FiniteDuration)(onTimeout: => Unit): Timeout =
9393
new Timeout(System.currentTimeMillis + duration.toMillis, () => onTimeout)
9494
implicit val ordTimeout: Ordering[Timeout] =
95-
Ordering.by[Timeout, Long](_.expiry)
95+
Ordering.by[Timeout, Long](_.expiry).reverse
9696
}
9797

9898
private class Attachment(

0 commit comments

Comments
 (0)