aboutsummaryrefslogtreecommitdiff
path: root/rp/rcynic/rcynicng
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-01-29 13:52:24 +0000
committerRob Austein <sra@hactrn.net>2016-01-29 13:52:24 +0000
commita360962918dab66a8d455b692afc31a4710a3974 (patch)
tree5bf25137d3984008c78dc8caefae7abd76a39773 /rp/rcynic/rcynicng
parent2a598fa8adb5ae40eb05aa2406d523f2a2155790 (diff)
Tweaks to handle large RRDP deltas better.
svn path=/branches/tk705/; revision=6240
Diffstat (limited to 'rp/rcynic/rcynicng')
-rwxr-xr-xrp/rcynic/rcynicng7
1 files changed, 5 insertions, 2 deletions
diff --git a/rp/rcynic/rcynicng b/rp/rcynic/rcynicng
index ba6dfefe..c0415246 100755
--- a/rp/rcynic/rcynicng
+++ b/rp/rcynic/rcynicng
@@ -933,7 +933,10 @@ class Fetcher(object):
ok = False
t0 = time.time()
client = tornado.httpclient.AsyncHTTPClient()
- response = yield client.fetch(url, validate_cert = False, request_timeout = args.https_timeout)
+ response = yield client.fetch(url,
+ validate_cert = False,
+ connect_timeout = args.https_timeout,
+ request_timeout = args.https_timeout)
# Might want to check response Content-Type here
ok = True
@@ -1316,7 +1319,7 @@ def main():
parser.add_argument("--prefer-rsync", action = "store_true")
- parser.add_argument("--fetch-ahead-goal", default = 5, type = posint)
+ parser.add_argument("--fetch-ahead-goal", default = 2, type = posint)
parser.add_argument("--https-timeout", default = 300, type = posint)