Tercus / crowder

crowder is a decentralized crowd-sourced open video platform
0 stars 0 forks source link

Get seeding to work #2

Open Tercus opened 8 years ago

Tercus commented 8 years ago

The server should be able to seed files it has downloaded from users. This should happen automatically and periodically.

Tercus commented 8 years ago

On startup just readout the list of torrents in the database and give that array to the client.seed function. That should work and be fast enough for testing. Everytime the server finishes downloading a torrent, also add that with client.seed.

Tercus commented 8 years ago

Downloaded torrents are automatically seeded. I only have to check on startup and seed all in the database.

Tercus commented 8 years ago

Got seeding to work, but it creates a memory leak, rendering the PC useless within seconds https://github.com/Tercus/crowder/commit/596ac2530acb20f11d445f45b70ce6b69d064259