vimpunk / cratetorrent

A BitTorrent V1 engine library for Rust (and currently Linux)
468 stars 35 forks source link

Disk read/write buffers upper bound #22

Open vimpunk opened 4 years ago

vimpunk commented 4 years ago

Place limit on in-memory write buffer to not cause OOM. This should be configurable.

billyb2 commented 3 years ago

Out of curiosity, could you explain a bit what you mean by this?

Like for example, in the Torrent struct, would it be another item that states the maximum size? Also, wouldn't this be a breaking change? I apologize if I sound rude at all, I'm just curious.