Menu

m_num_want

2010-02-26
2013-05-13
  • Alexandr Bond

    Alexandr Bond - 2010-02-26

    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);

     
  • Alexandr Bond

    Alexandr Bond - 2010-02-26

    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?

     
  • Olaf van der Spek

    That's all.

     

Log in to post a comment.