@cryptotaxi247 / netdata-1 / commits / 289323954

timeout opening urls

paulfantom committed Jun 22, 2016 at 19:42 UTC 2893239543c876cfccdb2738cd68d626a5fc2339
1 file changed +1 -1
python.d/python_modules/base.py
+1 -1
@@ -124,7 +124,7 @@ class UrlService(BaseService):
124 :return: str
125 """
126 try:
127 - f = urlopen(self.url)
127 + f = urlopen(self.url, timeout=self.update_every)
128 raw = f.read().decode('utf-8')
129 f.close()
130 except Exception as e: