Skip to content

chg: scanner: Change initial upload data size

juga requested to merge juga/sbws:m15_issue40146_graph_03 into m15

and cut it off after X bytes.

To calculate the size of the upload, the HTTP block size and how many bytes have been uploaded after SS=0 (according to the HTTP request or tor's CIRC_BW events), the following changes has been made:

  • Create and open data file instead of creating the data in memory for every relay.
  • Move stream events to a class and handle the events in a thread.
  • Move circ_bw events to class
  • Move callback to class
  • Change HTTP block size given the target

Closes #40142 (closed)

Merge request reports

Loading