[zeromq-dev] recovering from an unanswered reply

Paul Colomiets paul at colomiets.name
Sun Aug 21 21:50:20 CEST 2011


On Sat, Aug 20, 2011 at 8:08 PM, Pieter Hintjens <ph at imatix.com> wrote:
> On Sat, Aug 20, 2011 at 5:46 PM, Mathijs Kwik <bluescreen303 at gmail.com> wrote:
>> Cool, I needed some confirmation that close/reconnect isn't evil/
>> frowned upon.
> It depends.
> Could be good design, could be bad design. For example, reconnecting
> is a simple way to handle certain error conditions (see Lazy Pirate
> pattern), but frequent close/reconnect in normal situations may
> exhaust system resources (running out of file handles or sockets).
> General advice would be "never design anything that's not a precise
> minimal answer to a problem you can identify and have to solve".

And in my opinion the minimal answer would be to use XREQ.


More information about the zeromq-dev mailing list