drblah / multi-connect

A continuation of mpconn
BSD 2-Clause "Simplified" License
1 stars 1 forks source link

Determine a reasonable limit for the packet sorter packet_queue #14

Open drblah opened 1 month ago

drblah commented 1 month ago

Currently, our reordering queue (packet_queue) is unbounded, which can cause bad several problems when the receiver cannot keep up.

  1. Memory overflow
  2. 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.