Commit 64c233aa authored by chenzhengzhang's avatar chenzhengzhang
Browse files

[trac253] update xfrout logic, it will use case-sensitive compress mode to send message.

parent f8e2229b
......@@ -170,6 +170,7 @@ class XfroutSession(BaseRequestHandler):
def _send_message(self, sock_fd, msg):
render = MessageRenderer()
render.set_compress_mode(MessageRenderer.CASE_SENSITIVE)
render.set_length_limit(XFROUT_MAX_MESSAGE_SIZE)
msg.to_wire(render)
header_len = struct.pack('H', socket.htons(render.get_length()))
......
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