mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-03-02 22:57:32 -05:00
A Way to Increase Max Connection #13638
Labels
No labels
Accessibility
AppImage
Bounty
Build system
CI
Can't reproduce
Code cleanup
Confirmed bug
Confirmed bug
Core
Crash
Data loss
Discussion
Docker
Documentation
Duplicate
Feature
Feature request
Feature request
Feature request
Filters
Flatpak
GUI
Has workaround
I2P
Invalid
Libtorrent
Look and feel
Meta
NSIS
Network
Not an issue
OS: *BSD
OS: Linux
OS: Windows
OS: macOS
PPA
Performance
Project management
Proxy/VPN
Qt bugs
Qt6 compat
RSS
Search engine
Security
Temp folder
Themes
Translations
Triggers
Waiting diagnosis
Waiting info
Waiting upstream
Waiting web implementation
Watched folders
WebAPI
WebUI
autoCloseOldIssue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/qBittorrent#13638
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @adamgwaps on GitHub (Jul 17, 2022).
Suggestion
i hope there is a way to increase max connection manually, i am seeding around 30k+ torrents and also downloading arount 10k+ and it seems no matter what the max connection always maxes at around 10k i run a direct connection with my ISP and i can have unlimited connection as long as my hardware(router) can handle it and mine can max at arount 500k connection.
Use case
more connections = more peers/leechers to connect to
Extra info/examples/attachments
manual toggle
@ghost commented on GitHub (Jul 23, 2022):
What happens if your untick the global max connection settings from GUI?
@adamgwaps commented on GitHub (Jul 23, 2022):
oops yeah forgot to add that info, every setting related to limiting the connection has been unchecked and it seems 10,000-10,500 is the hard limit.
@ghost commented on GitHub (Jul 23, 2022):
Which OS are you using? Does it limit applications to certain number of open file descriptors?
@adamgwaps commented on GitHub (Jul 23, 2022):
Windows, no just the connection its hard limited to around 10k
@OpenSpaghettiSauce commented on GitHub (Oct 9, 2022):
tl;dr: You are hitting OS limits, not qBittorrent limits.
This is a limit imposed by libtorrent-rasterbar and it cannot be just fixed. It caps your connections at 10,000.
Unfortunately the link included in the source does not exist anymore.
But, if you google "Windows 10000 limit", you can find many explanations and articles. There is a handle limit at 10k.
So basically, each process is limited to 10k and thus, qBittorrent (which uses libtorrent-rasterbar), can't go above that limit.
You could run Linux (or BSD) to get around this limit.
Keep in mind that there are limits on Linux too, but you can change them.
Google "raise TCP connection limit Linux" to find out how.
The relevant source from libtorrent-rasterbar (platform_util.cpp):
@OpenSpaghettiSauce commented on GitHub (Oct 9, 2022):
One other alternative is running multiple qBittorrent instances. Theoretically, that could work. Someone on Discord was doing that just a while ago. You could use the portable version and normal version (that's 2), you could use the portable flag and set up multiple (no limit), or you could add more users to the PC, and run the other instances under those other users.
You can also run Docker on Windows (it utilizes Hyper-V), and then you could just spin up instances. Not sure if it's exempt from this limitation though. Just a few ideas. Unfortunately, there is no simple straightforward "fix" until Microsoft decides to change this limit.
@xavier2k6 commented on GitHub (May 24, 2025):
ANNOUNCEMENT!
For anybody coming across this "Feature Request" & would like/love to see a potential implementation in the future!
Here are some options available to you:
Please select/click the 👍 &/or ❤
reactionsin the original/opening post of this ticket.Please feel free (If you have the "skillset") to create a "Pull Request" implementing what's being requested in this ticket.
(new/existing contributors/developers are always welcome)
DO:
DO NOT:
(These will be disregarded/hidden as "spam/abuse/off-topic" etc. as they don't provide anything constructive.)