SF.net SVN: fclient:[827] trunk/fclient/src/fclient/impl/lib/fcp2
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <jU...@us...> - 2008-07-30 22:19:44
|
Revision: 827
http://fclient.svn.sourceforge.net/fclient/?rev=827&view=rev
Author: jUrner
Date: 2008-07-30 22:19:52 +0000 (Wed, 30 Jul 2008)
Log Message:
-----------
connection attempt duration was flawed. fixed pt2
Modified Paths:
--------------
trunk/fclient/src/fclient/impl/lib/fcp2/client.py
trunk/fclient/src/fclient/impl/lib/fcp2/iohandler.py
Modified: trunk/fclient/src/fclient/impl/lib/fcp2/client.py
===================================================================
--- trunk/fclient/src/fclient/impl/lib/fcp2/client.py 2008-07-30 22:18:50 UTC (rev 826)
+++ trunk/fclient/src/fclient/impl/lib/fcp2/client.py 2008-07-30 22:19:52 UTC (rev 827)
@@ -489,7 +489,7 @@
msg = self.next(dispatch=False)
if msg == message.MsgClientSocketTimeout:
disconnectReason = consts.ConstDisconnectReason.NoNodeHello
- timeElapsed += time.time() - t0
+ timeElapsed = time.time() - t0
yield None
elif msg == message.MsgNodeHello:
self._nodeHelloMessage = msg
Modified: trunk/fclient/src/fclient/impl/lib/fcp2/iohandler.py
===================================================================
--- trunk/fclient/src/fclient/impl/lib/fcp2/iohandler.py 2008-07-30 22:18:50 UTC (rev 826)
+++ trunk/fclient/src/fclient/impl/lib/fcp2/iohandler.py 2008-07-30 22:19:52 UTC (rev 827)
@@ -210,7 +210,7 @@
# continue polling
consts.ConstLogger.IOHandler.info(consts.ConstLogMessages.RetryingConnect)
- timeElapsed += time.time() - t0
+ timeElapsed = time.time() - t0
time.sleep(timeout)
raise StopIteration
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|