]> git.mxchange.org Git - flightgear.git/commitdiff
Fix the root cause for terrasync.py timeouts
authorTorsten Dreyer <torsten@t3r.de>
Mon, 6 Jun 2016 10:17:12 +0000 (12:17 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 22 Sep 2016 21:27:35 +0000 (23:27 +0200)
Thanks to Andre Coetzee for spotting.

Also, don't hardcode port 80, intead use the port given in the url

scripts/python/terrasync.py

index 6798a1edcaeb26cec674def2f2b523b4ee1ab189..4ea2839de5cd23a1092c06013a1022b5190e8061 100755 (executable)
@@ -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):