Description of the issue:
When using the torrent plugin, downloads exhaust system memory followed by exhausting swap before Linux comes to a near halt
Steps to Reproduce (add as many as necessary):
- Launch Brave
- Go to Raspian OS downloads: https://www.raspberrypi.org/downloads/raspberry-pi-desktop/
- Click on “Download Torrent”
- Click on “Start Torrent”
Actual Result: It appears that the file is not be written to disk during the download, but saving in heap waiting for entire file to finish before flushing to disk. On a standard desktop with lots of system memory it finishes and saves. But on a laptop (like a netbook)with a smaller RAM size, it never reaches the end of file before swap is full and Linux hangs.
Expected Result:
Download of file via torrent should complete as planned and prompt to save.
Reproduces how often:
Always (on a laptop with 2Gb of RAM)
Brave Version:
Brave release - v1.1.20
Reproducible on current live release (yes/no):
Yes
Additional information:
Linux Version: Zorin OS Core 15.1
System: Lenovo 110S
CPU: 2 Core (Haswell) Celeron N3060
Memory: 2Gb
Free Disk Space: 94%