Re: [mongrel2] How a Handler ensures the response send to mongrel2 server?
- From:
- Kong
- Date:
- 2012-02-01 @ 08:13
Thank you Loic.
So just in case if M2 missed the message from Hanlder, the only result is
client will time out and try again?
2012/2/1 Loic d'Anterroches <loic@ceondo.com>
>
>
> On 2012-02-01 08:45, Kong wrote:
> > Hi all,
> > I'm a newbee of 0mq & mongrel2. I read some docs and knows that Handler
> > sends message to mongrel2 server via 'PUB' socket and mongrel2 server
> > gets data from Handler via 'SUB' socket.
> > However, there's no guarantee that a publisher sends the message to the
> > subscriber successfully, PUB doesn't know if the message is received by
> > SUB, how mongrel2 handle the missing message case?
>
> Nothing at the ZMQ level but you can access the Mongrel2 control port if
> you need to know the status of the connection with the client.
>
> If in the future a tnetstring is sent to M2 from the handlers, we could
> setup a "request to ack" or something like that.
>
> loïc
>
--
Regards,
Kong