Author: duncan
Date: Sun Jan 28 15:50:38 2007
New Revision: 9062
Modified:
branches/rel-1/freevo/src/rc.py
Log:
[ 1646064 ] TcpNetwork holds lost connections
Patch from Mathias Weber applied
Modified: branches/rel-1/freevo/src/rc.py
==============================================================================
--- branches/rel-1/freevo/src/rc.py (original)
+++ branches/rel-1/freevo/src/rc.py Sun Jan 28 15:50:38 2007
@@ -305,7 +305,10 @@
for conn in self.connections:
try:
buffer = conn.recv(self.MAX_MESSAGE_SIZE)
- return buffer.strip()
+ if len(buffer) == 0:
+ throwout.append(self.connections.index(conn))
+ else:
+ return buffer.strip()
except self.socket.error, oErr:
# if the error is not of typ 11 there is a problem with
# the connection, remove it from the list.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog