0

My ZeroMQ server ( not published here, written in java ) is set to run only after triggering an event and the ZeroMQ client ( written in python ) is continuously running in background, waiting for server.

For a considerable time period the python client keeps on running properly and then crashes with this error:

Assertion failed: Connection reset by peer (bundled\zeromq\src\signaler.cpp:298)

It happens when the server is not started for a larger time interval.

The client ( python ) app is in the following form

import zmq

context = zmq.Context()
socket  = context.socket( zmq.REQ )

socket.connect( "tcp://localhost:5555" )

socket.send( b"ReadySIG_From_Python_Emitted" )
message = socket.recv()
print( "OrderDetails %s" % ( message ) )

socket.send( b"TERMINATE" )
exit()
user3666197
  • 1
  • 6
  • 50
  • 92
Saurabh Bhoomkar
  • 595
  • 1
  • 9
  • 29
  • Did you look at the log of zeromq server? – qvpham Jun 22 '16 at 08:40
  • It's hard to say for sure what is going on (do you have a stack trace?) but I would recommend removing the usage of `localhost` and instead use the numeric address -- see [here](http://stackoverflow.com/a/8958414/1193874) for more details why. – Paul Jun 23 '16 at 12:14
  • This code is far from a StackOverflow promoted **`MCVE`** method of posting the high quality Questions. Text states (cit.:) "... the `ZeroMQ` **client** ... is continuously running in background, waiting for **server**." Update your Question to contain a fully representative **`MCVE`** for **both server & client** that can reproduce the problem you are reporting and asking the Community to help diagnose and fix. **This is the StackOverflow preferred way to constructively solve and discuss any kind of `MCVE` related issues.** – user3666197 Jun 24 '16 at 20:28

0 Answers0