[zeromq-dev] ZeroMQ not working well with google protobuf?

Justin Cook jhcook at gmail.com
Fri Mar 22 17:24:16 CET 2013


On Friday, 22 March 2013 at 12:21, Peter Sanders wrote:
> Hi Pieter.
> 
> Thanks for your reply. Good to hear that lots of people are using it together. My question remains unsolved however.
> 
> I've never heard of deallocating memory (I'm using python). Would you be able to give me a hint on whats wrong? I'm totally in the dark here.. Below is the relevant information:
> 
> 
> Errors I'm getting: http://pastebin.com/jX4SFapt
> earth.py: http://pastebin.com/tvvSZeNR heaven.py: http://pastebin.com/rtzCsuvg compiled protobuf message encoder in python: http://www.hkramer.nl/opslag/infoPack_pb2.py


In your examples, heaven is simply parsing the message, testing the outcome and then placing the same message on the outbound queue. 

Earth is always creating a brand new message. So, in essence, if you look at ZMQ's wire frame:

http://rfc.zeromq.org/spec:15 the ping pong is from heaven. Since earth is creating a brand new message each time, it is receiving its original message placed back on the wire from heaven. What I'm saying is the message is larger because of ZMQ's framing. Everything is working as it should be.

Cheers,

-- 
Justin Cook 





More information about the zeromq-dev mailing list