Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upDisable seed for mobile user #1212
Comments
This comment has been minimized.
This comment has been minimized.
|
This sounds like a reasonable use case, but I definitely understand the original intent to disallow leechers at the library-level which in the long run will help webtorrent-over-webrtc thrive. Since bittorrent fundamentally relies on a tit-for-tat exchange strategy, what if we instead added the ability to throttle upload / download speeds on a per-client basis? I believe this would mitigate your original issue while also remaining true to the nature of bittorrent. |
This comment has been minimized.
This comment has been minimized.
|
Throttle seems to be difficult to implement. Maybe the WebTorrent library could handle seeding deactivation when it detects it is in a mobile web browser or on a cellular network (https://developer.mozilla.org/en-US/docs/Web/API/Network_Information_API). With of course an option to enable/disable this behaviour. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
I don't want to hardcode any special behavior on mobile devices. The correct way to solve this is by implementing throttling. #163 |

Hi !
I was looking for a way to disable seed for mobile user for PeerTube : Chocobozzz/PeerTube#95. But I found that we cannot do that with webtorrent #480.
Our use case here is that mobile user often don't have a unlimited data plan and often it cost you a lot of money as soon as you exceed the amount allowed.