Opened 7 weeks ago

Last modified 7 weeks ago

#28667 new defect

Obtain the new descriptors and network status documents by signals instead of every 5min

Reported by: juga Owned by:
Priority: Medium Milestone: sbws: unspecified
Component: Core Tor/sbws Version:
Severity: Normal Keywords:
Cc: juga, teor Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

The network status and descriptors are obtained every 5min https://gitweb.torproject.org/sbws.git/tree/sbws/lib/relaylist.py#n144.
Is there any reason for that?.
I think torflow obtain them as they come.
It could be done with steam using:

controller.add_event_listener(
            listener_fn, EventType.NS, EventType.NEWDESC)

Also, instead overwriting those values, Relay could have a dictionary (key would be the timestamp) with a subset of the attributes of document, in case we might need to calculate median/mean of those attributes

Child Tickets

Change History (1)

comment:1 Changed 7 weeks ago by teor

Milestone: sbws: unspecified

This is a useful refactor, but we can deploy sbws without it.

Note: See TracTickets for help on using tickets.