Closed dcerisano closed 9 years ago
could we make the pulse/flood properties lowercase since they aren't constants? also it would be cool if you pass them as constructor options as well
:+1: This is awesome
@dcerisano :+1: i'll release this when i get to my laptop
Out in 0.21.0. Thanks!
Here is an early swarm-level solution for network flooding - a one-liner in the selector:
Requests to peers are prevented above a threshold swarm download rate, and resumed below the threshold, producing a pulse in the network, rather than a flood (see fig. 1).
A limited flood of the buffer can be set before pulsing begins.
Default is no pulsing (existing behavior). The flood limit and pulse threshold can be set dynamically in a torrent-stream consumer.
For example in a request for a 720p video segment:
or
or
Reset defaults: