1
0
Fork 0

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
This commit is contained in:
Torsten Dreyer 2016-06-06 12:17:12 +02:00
parent 0da1fc574d
commit b9cba13e32

View file

@ -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):