Closed GoogleCodeExporter closed 9 years ago
Here's a DIFF of how I fixed the issue. There might be a more efficient or
"Pythonic" way but this seems to work.
Index: amfast/remoting/channel.py
===================================================================
--- amfast/remoting/channel.py (revision 526)
+++ amfast/remoting/channel.py (working copy)
@@ -334,8 +334,9 @@
amfast.logger.debug("Cleaning channel.")
current_time = time.time() * 1000
- for connection_id in self.connection_manager.iterConnectionIds():
- self.cleanConnection(connection_id, current_time)
+ if self.connection_manager.iterConnectionIds():
+ for connection_id in self.connection_manager.iterConnectionIds():
+ self.cleanConnection(connection_id, current_time)
if hasattr(self.subscription_manager, 'deleteExpiredMessages'):
# TODO: better interface for deleting expired messages.
Index: amfast/remoting/memcache_connection_manager.py
===================================================================
--- amfast/remoting/memcache_connection_manager.py (revision 526)
+++ amfast/remoting/memcache_connection_manager.py (working copy)
@@ -126,7 +126,10 @@
def iterConnectionIds(self):
connection_ids = self.mc.get(self.CONNECTIONS_ATTR)
- return connection_ids.__iter__()
+ if connection_ids != None:
+ return connection_ids.__iter__()
+ else:
+ return None
# --- proxies for connection properties --- #
Original comment by cp...@wingsnwakes.com
on 30 Jul 2010 at 4:10
Thanks for the patch, I'll try to take a look at it this weekend.
Original comment by dthomp...@gmail.com
on 30 Jul 2010 at 4:22
This issue was closed by revision r527.
Original comment by dthomp...@gmail.com
on 31 Jul 2010 at 4:01
Original issue reported on code.google.com by
cp...@wingsnwakes.com
on 27 Jul 2010 at 3:01