Opened 13 years ago
Last modified 11 years ago
#3363 assigned Enhancement
MAX_CONNECTIONS_PER_SECOND should be replaced with a non-constant
Reported by: | charles | Owned by: | charles |
---|---|---|---|
Priority: | Normal | Milestone: | Sometime |
Component: | libtransmission | Version: | 2.00 |
Severity: | Normal | Keywords: | |
Cc: |
Description
There is no one-size-fits-all best value for this constant. Vuze uses a sliding scale based on how many peers are missing to meet its max connections goal. libtransmission should do something similar.
Attachments (1)
Change History (6)
comment:1 Changed 13 years ago by User294
comment:2 Changed 13 years ago by charles
- Milestone changed from 2.10 to Sometime
- Status changed from new to assigned
Changed 11 years ago by phreek
comment:3 Changed 11 years ago by phreek
I am submitting a patch (tested on 2.61)
It allows the user to modify the MAX_CONNECTIONS_PER_SECOND value via a command line argument and saves it to settings.json
comment:4 Changed 11 years ago by x190
And I am hoping something like this gets implemented. I've been advocating something like this for ages and got soundly swatted down each time.
Being the swatee, it's rather mind-boggling, but not surprising, that the swatter, namely one, Charles O'Jordan, was the author of this ticket!
This patch could indeed be helpful for many users. phreek: For what situations have you found this functionality helpful?
comment:5 Changed 11 years ago by phreek
Specifically when im running transmission on a box with a gigE internet uplink. I find that using that patch or simply changing the #define for MAX_CONNECTIONS_PER_SECOND from 12 to something higher ( i tested 100 ) greatly increased the speed at which transmission found new peers and started downloading faster/sooner when adding new torrents.
It may be desirable to make this option configurable by user. Reasons are:
moronsrouter vendors are using too small tables and some are setting connection tracking time a way too high, all this leads to a dozen of funny bugs in some routers behavior.As for me, I would prefer to have a control over this process in UI so I can choose my size depending on situation (like router abilities, channel speed and so on).