[zeromq-dev] Server Crashing due to ZMQ request
lanre lawal
lawillas4ever at yahoo.com
Mon Nov 7 02:08:27 CET 2011
Hi Guys,
I have a very light weight application that uses the ZMQ library to receive messages from an address. What happens is every 10seconds, a new request is made to the server to process and receive messages. Now after this runs for some 20-30minutes the system where ZMQ connects to crashes and its thought that ZMQ is the cause of the crash. Here's my code below:
byte[] zmq_buffer = new byte[1024];
gpspos pos = new gpspos();
gps_parser gp = new gps_parser();
ZMQ.Context context = new ZMQ.Context(1);
ZMQ.Socket socket = context.Socket(ZMQ.SocketType.DEALER);
socket.Connect("tcp://remote_address");
zmq_buffer = socket.Recv();
I was wondering if there was any optimization process necessary on the code or something. I'm using clrzmq for C#. Guys i need your advice. Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20111106/513fba5e/attachment.htm>
More information about the zeromq-dev
mailing list