Hi,
I'm trying to use Router/Dealer pattern to make a asynchronous C/S network.
There is 1 server, and N client. The client send request message to server, and
server reply the client asynchronously.
I need to attach a OBJECT to each connection. And all request from a connection
will to send to the OBJECT. This will take serveral steps:
1) a client connect to the server, and send the account check request.
2) the server check the account, and bind UUID(ZeroMQ generated) to a OBJECT
3) later, the server receive request message, check the UUID, find the OBJECT,
pass the message to the OBJECT
If the connection between server and client is break, then the mapping
information between OBJECT and UUID is missing. But the client known nothing
about this. Later the connection is established again, but the UUID is changed,
so the server don't known which OBJECT the message should send to. Because the
time between connection break and established is too short, so heartbeat cannot
detect connection is break.
Is there any way to handle this situation? Thank you!
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev