summaryrefslogtreecommitdiff
path: root/azurelinuxagent/utils/restutil.py
diff options
context:
space:
mode:
authorBen Howard <ben.howard@ubuntu.com>2015-12-07 16:48:51 -0700
committerusd-importer <ubuntu-server@lists.ubuntu.com>2015-12-08 16:10:11 +0000
commit542c7a834728ad35d7f5f98cacdf78d86721656f (patch)
tree6850cbc7ce3dec800c1b50f23da6b76077198159 /azurelinuxagent/utils/restutil.py
parentf6e3f158c2fb9021b37654ea20839ec7a4308d52 (diff)
parentf4e6aca60e419eafbdf11bdd631d35cf785735ae (diff)
downloadvyos-walinuxagent-542c7a834728ad35d7f5f98cacdf78d86721656f.tar.gz
vyos-walinuxagent-542c7a834728ad35d7f5f98cacdf78d86721656f.zip
Import patches-applied version 2.1.2-0ubuntu1 to applied/ubuntu/xenial-proposed
Imported using git-ubuntu import. Changelog parent: f6e3f158c2fb9021b37654ea20839ec7a4308d52 Unapplied parent: f4e6aca60e419eafbdf11bdd631d35cf785735ae New changelog entries: * New upstream release (LP: #1523715): - Bug fixes for Ubuntu 15.10 on Azure - Enablement for Azure Stack - Dropped patch for systemd job as upstream now includes it.
Diffstat (limited to 'azurelinuxagent/utils/restutil.py')
-rw-r--r--azurelinuxagent/utils/restutil.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/azurelinuxagent/utils/restutil.py b/azurelinuxagent/utils/restutil.py
index 1015f71..2acfa57 100644
--- a/azurelinuxagent/utils/restutil.py
+++ b/azurelinuxagent/utils/restutil.py
@@ -1,4 +1,4 @@
-# Windows Azure Linux Agent
+# Microsoft Azure Linux Agent
#
# Copyright 2014 Microsoft Corporation
#
@@ -66,7 +66,7 @@ def _http_request(method, host, rel_uri, port=None, data=None, secure=False,
#If proxy is used, full url is needed.
url = "https://{0}:{1}{2}".format(host, port, rel_uri)
else:
- conn = httpclient.HTTPSConnection(host, port)
+ conn = httpclient.HTTPSConnection(host, port, timeout=10)
url = rel_uri
else:
port = 80 if port is None else port
@@ -75,7 +75,7 @@ def _http_request(method, host, rel_uri, port=None, data=None, secure=False,
#If proxy is used, full url is needed.
url = "http://{0}:{1}{2}".format(host, port, rel_uri)
else:
- conn = httpclient.HTTPConnection(host, port)
+ conn = httpclient.HTTPConnection(host, port, timeout=10)
url = rel_uri
if headers == None:
conn.request(method, url, data)