I think the code looks good, but I'm not marking it as ready for merge yet. I've just asked the other network team members about how we should review the exceptions file for practracker. I've also asked the current bridge auth administrator how they handle this currently.
I think the code looks good, but I'm not marking it as ready for merge yet. I've just asked the other network team members about how we should review the exceptions file for practracker.
I've also asked the current bridge auth administrator how they handle this currently.
I bet it just works for them, and they don't know how it works :-)
v3 (non-bridge) directory authorities update the Running flag when they vote.
But for bridges, the Running flag gets updated in the getinfo function.
For consistency, let's update the bridge Running flag in networkstatus_dump_bridge_status_to_file(), before calling networkstatus_getinfo_by_purpose().
Authorities also update the running flag in list_server_status_v1(), another control port function.
For consistency, let's stop updating the Running flag in list_server_status_v1(), and just let it be updated when the vote/bridge-status is written.
For each function we modify, let's update the function documentation.
Let's also update the dir-spec, to document the old and new behaviour. The first version with the new behaviour will be 0.4.1.1-alpha, let's put that in the spec.
The code changes and the spec changes look like they do what they're supposed to do. Quick question, though: is this actually an improvement? We're making a GETINFO result less accurate. Maybe doing this on a timer would be more sensible? If so I'll merge this, then do another ticket to add a timer.
The code changes and the spec changes look like they do what they're supposed to do. Quick question, though: is this actually an improvement? We're making a GETINFO result less accurate. Maybe doing this on a timer would be more sensible? If so I'll merge this, then do another ticket to add a timer.
Sure, I think that doing it on a timer is sensible.