[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [sbws/master] scanner: change comment
commit 550093645979d4611310e9b34f450802303ddb15
Author: juga0 <juga@xxxxxxxxxx>
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)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits