From mboxrd@z Thu Jan 1 00:00:00 1970 From: kupcevic@sourceware.org Date: 26 Sep 2006 21:04:48 -0000 Subject: [Cluster-devel] conga/luci/site/luci/Extensions ricci_communic ... Message-ID: <20060926210448.11934.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: conga Changes by: kupcevic at sourceware.org 2006-09-26 21:04:47 Modified files: luci/site/luci/Extensions: ricci_communicator.py Log message: luci: set timeout on establishing connections to ricci (luci used to indefinitely block in connect() - preventing normal usage) Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ricci_communicator.py.diff?cvsroot=cluster&r1=1.4&r2=1.5 --- conga/luci/site/luci/Extensions/ricci_communicator.py 2006/08/24 20:15:23 1.4 +++ conga/luci/site/luci/Extensions/ricci_communicator.py 2006/09/26 21:04:47 1.5 @@ -23,8 +23,12 @@ # socket sock = socket(AF_INET, SOCK_STREAM) + sock.settimeout(2.0) sock.connect((self.__hostname, self.__port)) self.ss = ssl(sock, self.__privkey_file, self.__cert_file) + sock.settimeout(600.0) # 10 minutes + # TODO: data transfer timeout should be much less, + # leave until all calls are async ricci calls # receive ricci header hello = self.__receive()