From: Torsten Dreyer Date: Mon, 6 Jun 2016 10:17:12 +0000 (+0200) Subject: Fix the root cause for terrasync.py timeouts X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=933189d341c53f9ca291e887d90f141e4e5e7c5d;p=flightgear.git 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 --- 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):