-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Delay subsequent requests to the same host #19801
Delay subsequent requests to the same host #19801
Conversation
This commit only adds the RSS fetch delay setting to gui and loads it to to RssSession Part 1 for qbittorrent#8350
Add delay to requests with the same ServiceID The delay length is based on RSS fetch delay Fixes qbittorrent#8350
Note that |
ping @jNullj |
Thank you for the reminder, I may be able to fix the PR this sunday. |
Any idea when this might be coming? It would be a great update to the appliacation! <3 |
Due to my new job, my GitHub activity has decreased. Apologies for delays. I'll aim to resume work this weekend. Feel free to co-commit or suggest changes. If maintainers feel the need to edit or create a separate PR due to my pace, I understand. Thanks for your patience. |
Co-authored-by: Chocobo1 <[email protected]>
Co-authored-by: Chocobo1 <[email protected]>
Co-authored-by: Chocobo1 <[email protected]>
Delay is per ServiceID This removes dependency of RSS_Session from downloadmanager.
Update delay for registered sequential download services. User might change rss fetch delay. This commit updates existing services with new values to take instant effect for the change without the need for a restart. Closes qbittorrent#8350
Co-authored-by: Vladimir Golovnev <[email protected]>
Co-authored-by: Vladimir Golovnev <[email protected]>
Revert some unneeded changes to optionsdialog.ui intrudoced at commit e79878a This will make diff at merge more readable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last comments from me
Change rss_fetch_delay from int to qlonglong to avoid clipping Co-authored-by: Chocobo1 <[email protected]>
Allow maximum value as user input to remove artificial limit Co-authored-by: Chocobo1 <[email protected]>
Unfortunately, I have found that these changes have "opened the door" to undefined behavior and/or race conditions. I want to make some preliminary changes in separate PR, and when it is merged, we will continue with this one. |
|
@jNullj |
No problem, i will update it after #20257 is merged to avoid reworking this pr if it changes before that. |
Your - yes. |
Those who offered some tips on correcting the coding style, as in those who reviewed my code and offered changes. |
If the proposed changes are trivial, such as correcting the coding style, then we do not take this into account as co-authorship. |
…nt to Download Manager
Re-add download delay for same serviceID (same domain and port) after the download manager refactor.
@jNullj |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I didn't publish the review.
Closes #8350
This adds a delay between two network downloads to avoid hitting rate limits
The delay can be set in Preferences in the RSS tab.
Added both in native GUI and webUI.
I tested this manually on Linux and i did not detect any obvious issues.
Native GUI image of the new setting:
webUI image of the new setting:
Some other things to note which are not directly related:
uncrustify
, After running it i realized many files are not formatted by it, I might get a new PR that formats everything that's missing soon