-
-
Notifications
You must be signed in to change notification settings - Fork 427
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
Sorting the started view causes announces to fire #449
Comments
Hi, I have some additional information to add which is sensitive in nature. Please provide me details on how I can provide this additional information privately to one of the developers. |
On second thought, I'm not sure whether the state change is responsible for this. Edit: I misunderstood the concept late night :) I tried out what happens if you override them in your config, e.g. like this:
Note, that the 2nd line is the same as in main.cc, I only removed |
I have a sort for the stopped view also. It doesn't cause this, however I figured that was due to the stopped torrents not being announced to the trackers. Still need to relay some info to you privately somehow, for what it's worth. |
Thanks for the feedback: I edited the post above in the meantime (sorry, I haven't noticed that you've already answered). |
Ok let me try your modified config and see if the other bug is present with it also. |
Unfortunately the above causes all torrents to stop every time I try to start them. (Note: Since my OP, I went through and updated all commands in the config file to the 0.9.6 way of doing them) |
Yes, I noticed that.
|
The logic does work (I made a silly bug in the condition, now it's fixed). I've updated the post above. To be clear, with this patch:
The latter has to be mentioned later on the wiki under Issues: https://github.com/rakshasa/rtorrent/wiki/Issues (I just linked this issue for now.) @Speeddymon Can you try it out? And thanks for mentioning this and for contributing to the wiki as well! @rakshasa If you agree with the logic above and you'll accept this dirty fix then I will create a pull request. |
Patch2 (instead of the previous one): https://github.com/chros73/rtorrent-ps/blob/fix_filter_started/patches/ps-fix-sort-started-stopped-views_all.patch
It works better then the previous one:
(I've searched through the source code and it shouldn't break anything.) @Speeddymon Can you try out this patch2 (that patches
|
Hi @chros73 Seems my last comment didn't get posted. I can't compile on this machine as its not my machine to muck around with, even though I have root. However, if @rakshasa accepts the fix, I can get the distro maintainers to port the fix to their build and I can yum update rtorrent with the new patch. I'm hopeful it will also fix another bug I need to report privately but haven't yet been able to figure out how to do so. |
Ok, no problem. But it won't happen soon, I think :) |
That's fine for me. The sorting is not a big issue so much since I mainly watch the Active view. :-) But, eventually will be nice to have for started view. :-) Thanks again for your help with diagnosing this. |
And fixing it :) Yw. |
And fixing it. Yes. :-) No, I'm afraid not since I don't own the server. |
I've added and commented the pull request. (About rtorrent-ps: try to convince them or you can compile it into your home dir. It will open up a whole new world! :) ) |
I have reported this downstream with Fedora, in the hopes that they will include the fix in their build, in spite of a lack of a response from @rakshasa |
Ref: #386
Sorting the started view, such as on a schedule, causes the announces for all started torrents to fire.
This can lead to announces being sent to trackers every second, in some schedules, which can lead to being banned from some trackers, or at the very least, a warning from the administrators about hammering the tracker.
The suspected cause is that the torrents are all removed from the started view, and then added back in the specified order, which causes the state of the torrents to change from 1 to 0 to 1 again, and that all runs through the following line of code:
rtorrent/src/main.cc
Line 310 in efc9097
The state change is likely what is causing the announce itself to be sent, however the sorting of the view should ideally not trigger a state change, except that right now it does.
The text was updated successfully, but these errors were encountered: