diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py index 9ac9dcb808a..4b6014505f3 100644 --- a/lib/codereview/codereview.py +++ b/lib/codereview/codereview.py @@ -2444,6 +2444,8 @@ def MySend1(request_path, payload=None, self._Authenticate() if request_path is None: return + if timeout is None: + timeout = 30 # seconds old_timeout = socket.getdefaulttimeout() socket.setdefaulttimeout(timeout)