Commit 6b57dd89 authored by Jim Fulton's avatar Jim Fulton

Setting i=0 wasn't necessary. An earlier error wasn't due to a Python

compiler silliness, but due to a threading bug which has been fixed.
parent e362c591
...@@ -282,7 +282,7 @@ class SizedMessageAsyncConnection(asyncore.dispatcher): ...@@ -282,7 +282,7 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
# unfortunate interaction between the Nagle algorithm and # unfortunate interaction between the Nagle algorithm and
# delayed acks. If we send a very large string, only a # delayed acks. If we send a very large string, only a
# portion of it will actually be delivered at a time. # portion of it will actually be delivered at a time.
l = i = 0 l = 0
for i in range(len(output)): for i in range(len(output)):
l += len(output[i]) l += len(output[i])
if l > SEND_SIZE: if l > SEND_SIZE:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment