qBittorrent icon indicating copy to clipboard operation
qBittorrent copied to clipboard

Automatic throttle or disconnect on metered connections

Open PauluzzS opened this issue 7 years ago • 5 comments

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.

PauluzzS avatar Jan 19 '18 15:01 PauluzzS

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.

Please check this and this

I'm not sure (not checked), but maybe theese APIs can help: msdn, some github example.

Evengard avatar Jul 23 '19 06:07 Evengard

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.

HaleTom avatar Aug 10 '20 03:08 HaleTom

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.

janat08 avatar May 23 '22 07:05 janat08

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

Uvaly avatar Nov 12 '22 10:11 Uvaly

I just lost $20 worth of mobile data because I forgot qBT was running and minimized in the notification tray..

Othmane-ElAlami avatar May 26 '23 11:05 Othmane-ElAlami