[tor-commits] [sbws/master] scanner: change comment

juga at torproject.org juga at torproject.org
Wed Jan 23 15:21:08 UTC 2019


commit 550093645979d4611310e9b34f450802303ddb15
Author: juga0 <juga at riseup.net>
Date:   Wed Dec 12 15:40:38 2018 +0000

    scanner: change comment
---
 sbws/core/scanner.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sbws/core/scanner.py b/sbws/core/scanner.py
index caf2aaa..f461824 100644
--- a/sbws/core/scanner.py
+++ b/sbws/core/scanner.py
@@ -36,7 +36,11 @@ def timed_recv_from_server(session, dest, byte_range):
     HTTP_GET_HEADERS['Range'] = byte_range
     # TODO:
     # - What other exceptions can this throw?
-    # - Do we have to read the content, or did requests already do so?
+    # - response.elapsed "measures the time taken between sending the first
+    #   byte of the request and finishing parsing the headers.
+    #   It is therefore unaffected by consuming the response content"
+    #   If this mean that the content has arrived, elapsed could be used to
+    #   know the time it took.
     try:
         # headers are merged with the session ones, not overwritten.
         session.get(dest.url, headers=HTTP_GET_HEADERS, verify=dest.verify)





More information about the tor-commits mailing list