Commit 532ecb81 authored by Jim Fulton's avatar Jim Fulton

Revering 121290, I was too hasty. Tests were failing.

parent d13a82fb
......@@ -266,15 +266,7 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
while (size <= SEND_SIZE) and messages:
message = messages[0]
if message.__class__ is str:
if self.__hmac_send:
size += self.__message_output(messages.pop(0), output)
else:
# inline common case
lmessage = len(message)
output.append(struct.pack(">I", lmessage))
output.append(messages.pop())
size += 4 + lmessage
elif message is _close_marker:
del messages[:]
del output[:]
......
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