Currently, our reordering queue (packet_queue) is unbounded, which can cause bad several problems when the receiver cannot keep up.
Memory overflow
buffer bloat
Setting a limit is a balancing act between being able to correctly reassemble high bandwidth streams and minimizing the above-mentioned problems.
Therefore, we need to establish a way to set a limit to how many packets we are willing to queue. This can be either a static or dynamic limit.
Currently, our reordering queue (packet_queue) is unbounded, which can cause bad several problems when the receiver cannot keep up.
Setting a limit is a balancing act between being able to correctly reassemble high bandwidth streams and minimizing the above-mentioned problems. Therefore, we need to establish a way to set a limit to how many packets we are willing to queue. This can be either a static or dynamic limit.