qBittorrent
qBittorrent copied to clipboard
Automatic throttle or disconnect on metered connections
qBittorrent version and Operating System
Windows
What is the problem
When having qbt open on a machine which is on a metered connection, the uploads and downloads continue on max bandwidth
What is the expected behaviour
It would make sense to throttle the bandwidth or stop connecting, when on a metered connection.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
This is control of an embedded in qB connection limits. This request is about enabling/disabling theese connection limits in case if the network, to which the PC is connected, is marked as "Metered" in Windows itself.
This is new as of Windows 8.
I'm not sure (not checked), but maybe theese APIs can help: msdn, some github example.
For Linux, here are some resources:
- https://stackoverflow.com/questions/43228973/detect-if-current-connection-is-metered-with-networkmanager
- https://askubuntu.com/questions/711949/set-wifi-as-metered-connection
If I'm connected via my mobile phone's limited data plan, I'd really like that qbittorrent automatically backs off, honouring the 'metered' status.
I wound up paying for this. Sad thing that there's hardly a decent torrent-client that lets you stream torrents before they're downloaded for free, and hopefully one that respects metered connection option.
There are several possible solutions:
- on a metered connection, stop downloads/uploads and ask user if they want to continue unthrottled or with rate limits. (my favourite solution)
- on a metered connection, notify user and continue downloading.
- on a metered connection, automatically enable rate limits (that can already be set in settings)
- have a setting that determines the above behaviour Another possible link for querying connection status, and an event raised when it changes: https://learn.microsoft.com/en-us/windows/win32/api/netlistmgr/ns-netlistmgr-nlm_dataplan_status
I just lost $20 worth of mobile data because I forgot qBT was running and minimized in the notification tray..