tMerge pull request #2591 from block8437/master - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit e2d996f199180803499298bc04cce6bb3f8ab438 DIR parent 9c28489bc025929eb25c53b7b10562f95179a98d HTML Author: ThomasV <thomasv@electrum.org> Date: Mon, 10 Jul 2017 18:31:51 +0200 Merge pull request #2591 from block8437/master Added a timeout on the urllib2 request during a notify event. Diffstat: M lib/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/lib/commands.py b/lib/commands.py t@@ -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))