Aria2: How can i build aria2c with max-connections-per-server more than 16

Created on 1 Mar 2016  路  5Comments  路  Source: aria2/aria2

Is it possible to build aria2c with --max-connections-per-server, --split more than 16, i tried to searching in the configure file for such option and also tried searching in source to check if it hard-coded anywhere, but i couldn't find it

question

Most helpful comment

It is hard coded. See https://github.com/tatsuhiro-t/aria2/blob/8985d66e71f980e7d2765753800078f47761f1ba/src/OptionHandlerFactory.cc#L422
Change it to whatever value you want, and compile aria2 for yourself.

All 5 comments

It is hard coded. See https://github.com/tatsuhiro-t/aria2/blob/8985d66e71f980e7d2765753800078f47761f1ba/src/OptionHandlerFactory.cc#L422
Change it to whatever value you want, and compile aria2 for yourself.

thank you very much, i'm searching with case sensitive flag,
sorry to waste your time.
:100:

anyone compiled it for windows with 32 connection? can I have it ? thanks

After changing the number 16 to 32 in OptionHandlerFactory.cc as mentioned and rebuilding, the max connection per server is still 16. I wonder whether this configuration is overwritten somewhere else.

@tatsuhiro-t May i ask why don't you make it dynamic? in our case (Persepolis DM) it's not a good idea to re-compile Aria2 for users.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nmaier picture nmaier  路  4Comments

huangqingchao picture huangqingchao  路  3Comments

nicolasxu picture nicolasxu  路  4Comments

lardissone picture lardissone  路  3Comments

Dingo64 picture Dingo64  路  4Comments