[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/zrpc/smac.py Overcome weakness in Python compiler.

Jim Fulton jim at zope.com
Mon Feb 1 14:12:18 EST 2010


Log message for revision 108695:
  Overcome weakness in Python compiler.
  

Changed:
  U   ZODB/trunk/src/ZEO/zrpc/smac.py

-=-
Modified: ZODB/trunk/src/ZEO/zrpc/smac.py
===================================================================
--- ZODB/trunk/src/ZEO/zrpc/smac.py	2010-02-01 19:12:15 UTC (rev 108694)
+++ ZODB/trunk/src/ZEO/zrpc/smac.py	2010-02-01 19:12:17 UTC (rev 108695)
@@ -282,7 +282,7 @@
             # unfortunate interaction between the Nagle algorithm and
             # delayed acks.  If we send a very large string, only a
             # portion of it will actually be delivered at a time.
-            l = 0
+            l = i = 0
             for i in range(len(output)):
                 l += len(output[i])
                 if l > SEND_SIZE:



More information about the Zodb-checkins mailing list