Browse Source

Merge pull request #2591 from block8437/master

Added a timeout on the urllib2 request during a notify event.
2.9.x
ThomasV 8 years ago
committed by GitHub
parent
commit
e2d996f199
  1. 2
      lib/commands.py

2
lib/commands.py

@ -646,7 +646,7 @@ class Commands:
data = {'address':address, 'status':x.get('result')}
try:
req = urllib2.Request(URL, json.dumps(data), headers)
response_stream = urllib2.urlopen(req)
response_stream = urllib2.urlopen(req, timeout=5)
util.print_error('Got Response for %s' % address)
except BaseException as e:
util.print_error(str(e))

Loading…
Cancel
Save