[zeromq-dev] XREP/XREQ And Inproc . Clean Shutdown
Antonio Teixeira
eagle.antonio at gmail.com
Mon Mar 19 16:10:38 CET 2012
Hello Chuck , this is correct.
But i can imagine that during the work processing if the server goes off
line ( no response) will block the client on recv () ?
Regards
A/T
2012/3/19 Chuck Remes <cremes.devlist at mac.com>
>
> On Mar 19, 2012, at 6:10 AM, Antonio Teixeira wrote:
>
> > Hello Again :)
> >
> > Dunno if i should open a new topic but here it goes.
> > During a test i found a small problem :)
> >
> > The same client server model. Imagine using REQ the client asks
> something from the server.
> > The message exits the client and arrives at the server while it's under
> processing ( on the server ) the client has a fatal error and closes itself.
> >
> > Now when server tries to respond to the client it will actually block
> waiting for the remote peer.
>
> This probably only happens if the "server" is using a REP socket. Just use
> a ROUTER socket (was called XREP) instead and it will drop outgoing
> messages for peers that no longer exist.
>
> cr
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120319/02f9e77e/attachment.htm>
More information about the zeromq-dev
mailing list