Repository: ambari Updated Branches: refs/heads/branch-3.0-perf 21e590b81 -> 24464d9b4
AMBARI-21861. Agent sometimes hangs during connection to server (aonishuk) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/24464d9b Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/24464d9b Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/24464d9b Branch: refs/heads/branch-3.0-perf Commit: 24464d9b494c5c0ce94c4a82a02bcd6a2ff01a3e Parents: 21e590b Author: Andrew Onishuk <aonis...@hortonworks.com> Authored: Thu Sep 7 11:28:15 2017 +0300 Committer: Andrew Onishuk <aonis...@hortonworks.com> Committed: Thu Sep 7 11:28:15 2017 +0300 ---------------------------------------------------------------------- ambari-common/src/main/python/ambari_ws4py/client/__init__.py | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/24464d9b/ambari-common/src/main/python/ambari_ws4py/client/__init__.py ---------------------------------------------------------------------- diff --git a/ambari-common/src/main/python/ambari_ws4py/client/__init__.py b/ambari-common/src/main/python/ambari_ws4py/client/__init__.py index 89598ab..f947967 100644 --- a/ambari-common/src/main/python/ambari_ws4py/client/__init__.py +++ b/ambari-common/src/main/python/ambari_ws4py/client/__init__.py @@ -212,6 +212,7 @@ class WebSocketBaseClient(WebSocket): self.sock = ssl.wrap_socket(self.sock, **self.ssl_options) self._is_secure = True + self.sock.settimeout(10.0) self.sock.connect(self.bind_addr) self._write(self.handshake_request)