From 933189d341c53f9ca291e887d90f141e4e5e7c5d Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Mon, 6 Jun 2016 12:17:12 +0200 Subject: [PATCH] Fix the root cause for terrasync.py timeouts Thanks to Andre Coetzee for spotting. Also, don't hardcode port 80, intead use the port given in the url --- scripts/python/terrasync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/python/terrasync.py b/scripts/python/terrasync.py index 6798a1edc..4ea2839de 100755 --- a/scripts/python/terrasync.py +++ b/scripts/python/terrasync.py @@ -40,7 +40,7 @@ class HTTPGetter: self.maxPending = maxPending self.requests = [] self.pendingRequests = [] - self.httpConnection = HTTPConnection(self.parsedBaseUrl.netloc,80, True) + self.httpConnection = HTTPConnection(self.parsedBaseUrl.netloc) self.httpRequestHeaders = headers = {'Host':self.parsedBaseUrl.netloc,'Content-Length':0,'Connection':'Keep-Alive','User-Agent':'FlightGear terrasync.py'} def doGet(self, httpGetCallback): -- 2.39.5