Ticket #19552: 0001-Add-n-conns-downloading-to-download-GETINFO-queries-.patch

File 0001-Add-n-conns-downloading-to-download-GETINFO-queries-.patch, 1.5 KB (added by andrea, 3 years ago)

Proposed controller spec patch

  • control-spec.txt

    From 22c766e6e03663c99e7a4d8d8be7116fce6e298c Mon Sep 17 00:00:00 2001
    From: Andrea Shepard <andrea@persephoneslair.org>
    Date: Mon, 5 Sep 2016 18:35:29 +0000
    Subject: [PATCH] Add n-conns-downloading to download/ GETINFO queries for
     controller
    
    ---
     control-spec.txt | 13 +++++++++----
     1 file changed, 9 insertions(+), 4 deletions(-)
    
    diff --git a/control-spec.txt b/control-spec.txt
    index 37c6484..d54abd7 100644
    a b  
    910910      "increment-on" SP DownloadIncrementOn CRLF
    911911      "backoff" SP DownloadBackoff CRLF
    912912      [ "last-backoff-position" Uint CRLF
    913         "last-delay-used UInt CRLF ]
     913        "last-delay-used" UInt CRLF ]
     914      [ "n-conns-downloading" UInt CRLF ]
    914915
    915916      where
    916917
     
    923924      DownloadBackoff =
    924925        "DL_SCHED_DETERMINISTIC" / "DL_SCHED_RANDOM_EXPONENTIAL"
    925926
    926       The optional last two lines must be present if DownloadBackoff is
    927       "DL_SCHED_RANDOM_EXPONENTIAL" and must be absent if DownloadBackoff
    928       is "DL_SCHED_DETERMINISTIC".
     927      The optional lines "last-backoff-position" and "last-delayed-used" must
     928      be present if DownloadBackoff is "DL_SCHED_RANDOM_EXPONENTIAL" and must
     929      be absent if DownloadBackoff is "DL_SCHED_DETERMINISTIC".
     930
     931      The optional line "n-conns-downloading" is present if Tor knows how to
     932      find the directory connections associated with the download status; it
     933      indicates the number of active attempts, possibly zero.
    929934
    930935      In detail, the keys supported are:
    931936