i have noticed that tracker returns 50 peers on each distribution even there are much more peers on it.
I want to increase this value. Should i edit only this line in server.cpp or something else or this row is for some other purposes?
size_t c = ti.m_num_want < 0 ? 50 : std::min(ti.m_num_want, 50);
for example
size_t c = ti.m_num_want < 0 ? 150 : std::min(ti.m_num_want, 150);
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i have noticed that tracker returns 50 peers on each distribution even there are much more peers on it.
I want to increase this value. Should i edit only this line in server.cpp or something else or this row is for some other purposes?
size_t c = ti.m_num_want < 0 ? 50 : std::min(ti.m_num_want, 50);
for example
size_t c = ti.m_num_want < 0 ? 150 : std::min(ti.m_num_want, 150);
update: after i edited the row as above
size_t c = ti.m_num_want < 0 ? 150 : std::min(ti.m_num_want, 150);
tracker returned to my client 150 peers, the question is:
should i have to edit something else?
That's all.