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:
parent
0da1fc574d
commit
b9cba13e32
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue