Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resume torrents after network reconnects #3072

Closed
hsnzag opened this issue May 21, 2015 · 12 comments
Closed

Resume torrents after network reconnects #3072

hsnzag opened this issue May 21, 2015 · 12 comments

Comments

@hsnzag
Copy link

hsnzag commented May 21, 2015

when connection to the internet is lost the torrent pauses automatically and resumes when connection is reestablished this feature would be great for me if added in the next update since im my country we suffer occasional power outages in the current version the torrent stalls when connection is lost and i have to pause it and resume it manually to get it back to download

@chrishirst
Copy link
Contributor

libtorrent which handles the networking does not have a "poll network" 'feature' so it only 'knows' when it cannot communicate with peers and trackers, so there is no way to 'know' when or if it is "up" again.

@Chocobo1
Copy link
Member

Maybe PR #3071 can fix this... duplicate of Issue #475?

@jcri
Copy link

jcri commented May 21, 2015

please add an option to change properties of multiple files
like change mutiple torrents tracker adress

@chrishirst
Copy link
Contributor

please add an option to change properties of multiple files
like change tracker adress

Start a new issue instead of hijacking unrelated issues.

And editing tracker addresses is ALREADY in the client.

@ppolewicz
Copy link
Contributor

I can not understand why (and how) would the individual torrents pause when the connection dies and how unpausing them would fix the issue described by the issue reporter. Has issue #2078 been implemented?
If the connection drop triggers an IP change that the computer can see, then there is a good chance PR #3071 fixes it, but it may be that connection drops somewhere between routers along the way (but that is not qBittorrent specific issue).

@jcri
Copy link

jcri commented May 21, 2015

i mean change the tracker for multple torrents all at once
in case of the tracker change its ports or adress

@ppolewicz
Copy link
Contributor

@jcri please file a new issue for that request, #3072 is about something else

@hsnzag
Copy link
Author

hsnzag commented May 21, 2015

@ppolewicz
I'msorry my english is not very good did't quite get what u mean but the i need the torrents to pause so they won't get "stalled" because when torrets in qbittorrent "stalled for a long time they wont get peers unless I pause them
ttorrent for android has this exact feature torrent pauses automatically when internet connection is lost and continues when the connection is back how is it possible there and not possible in qbittorrent /?

@ppolewicz
Copy link
Contributor

If I understand correctly, if connection is failing, transfer stops and does not start, but you can fix it by pausing and unpausing a torrent. If this is the case, then it is either wrong settings or a problem (or a missing feature) in libtorrent. @sledgehammer999 how do you think?

@hsnzag
Copy link
Author

hsnzag commented May 22, 2015

@ppolewicz YES EXACTLY HOPE FOR A FIX SOON
issue #2078 may have been implemented because when i lose connection to the wifi connection and reconnect the router assigns an automatic ip that may differ every time
I'll try try assigning a static ip and see if ithis fixs the problem

@sledgehammer999 sledgehammer999 changed the title New Feature request Resume torrents after network reconnects May 22, 2015
@sledgehammer999
Copy link
Member

Sorry I cannot reproduce this. I put a new torrent downloading and after a while I performed 2 tests:

  1. Pull the ethernet cable out for 1 minute and then plug it in again.
  2. Pull the phone cable from the router for 1 minute and the replug it.

In both situations the when I pulled out the cable the torrent went to "Stalled" status. After I replugged the cable the status almost immediately changed to "Downloading" and it continued downloading.
PS: Of course in the second test I had to wait for the router to synchronize first.

And after I wrote the above I saw this:

the wifi connection and reconnect the router assigns an automatic ip that may differ every time

If you lose wifi connection (and not internet connection) is a totally different thing. Although most routers will re-assign you the same ip address if you reconnect after a while.
Changing IPs is the root of this problem.
If you assign static IP it will fix this problem.

Please report back and tell me if it did fix your problem.

@ppolewicz
Copy link
Contributor

Changing IP is fixed in #3071.

My reasoning was the following: the problem is long TCP timeouts giving an impression that everything is ok, while remote peers have severed the connection long time ago. What user sees is his client waiting for the peer to unchoke him, while the in question peer has disconnected him long time ago. All slots would be occupied in that way, causing a stalled torrent. That is why pausing and restarting has fixed the issue, while it would not be a viable workaround for the changed IP problem... Unless pausing all torrents destructs the qbitorrent's session object?

@qbittorrent qbittorrent locked and limited conversation to collaborators Feb 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants