Middleware: Add MTU rather than setting length to max

Don't want overflow errors here since the next iteration will still
add their packet length.
This commit is contained in:
Jakob Gillich 2021-04-17 22:42:25 +02:00
parent 9d3e468693
commit 22de086bb8

View file

@ -604,7 +604,7 @@ class MiddlewareActor(
if (packetsBundledByThemselves.exists { _(packet) }) {
if (length == packetLength) {
length = Long.MaxValue
length += MTU * 8
true // dequeue only packet
} else {
false // dequeue later