[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #13000 [Tor]: Should relays wait with publishing a descriptor until they've run a bw self-test?



#13000: Should relays wait with publishing a descriptor until they've run a bw
self-test?
---------------------------+-----------------
     Reporter:  Sebastian  |      Owner:
         Type:  defect     |     Status:  new
     Priority:  normal     |  Milestone:
    Component:  Tor        |    Version:
   Resolution:             |   Keywords:
Actual Points:             |  Parent ID:
       Points:             |
---------------------------+-----------------

Comment (by arma):

 Replying to [comment:4 arma]:
 > One hack would be to special-case "my current descriptor says bw 0 but
 now I'm going to say non-zero" and make an exception to the
 MAX_BANDWIDTH_CHANGE_FREQ check.

 {{{
 diff --git a/src/or/router.c b/src/or/router.c
 index 2cdbb0c..c81ae62 100644
 --- a/src/or/router.c
 +++ b/src/or/router.c
 @@ -2081,7 +2081,7 @@ check_descriptor_bandwidth_changed(time_t now)
    if ((prev != cur && (!prev || !cur)) ||
        cur > prev*2 ||
        cur < prev/2) {
 -    if (last_changed+MAX_BANDWIDTH_CHANGE_FREQ < now) {
 +    if (last_changed+MAX_BANDWIDTH_CHANGE_FREQ < now || !prev) {
        log_info(LD_GENERAL,
                 "Measured bandwidth has changed; rebuilding descriptor.");
        mark_my_descriptor_dirty("bandwidth has changed");
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/13000#comment:5>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs