diff --git a/oml/nodes.py b/oml/nodes.py index 367b0f9..69d2f60 100644 --- a/oml/nodes.py +++ b/oml/nodes.py @@ -129,8 +129,7 @@ class Node(Thread): self._opener.addheaders = list(zip(headers.keys(), headers.values())) #logger.debug('headers: %s', self._opener.addheaders) try: - self._opener.timeout = self.TIMEOUT - r = self._opener.open(url, data=content) + r = self._opener.open(url, data=content, timeout=self.TIMEOUT*2) except urllib.error.HTTPError as e: if e.code == 403: logger.debug('403: %s (%s)', url, self.user_id)