[zeromq-dev] Lazy pirate alternative implementation

Dmitri Toubelis dmitri.toubelis at alkeron.com
Thu Jun 12 22:54:35 CEST 2014


I needed to implement a pattern similar to "lazy pirate" from the guide for my project. However, the idea of reconnecting the socket upon timeout looks kind of lame to me, so I implemented it differently:


It works okay but is there anything obviously wrong with this approach? Are there any potential gotchas?

P.S.: I'm using ZMQ 2.1.x

More information about the zeromq-dev mailing list