[zeromq-dev] Socket lifetime and Common Lisp binding

Pieter Hintjens ph at imatix.com
Thu Mar 20 08:26:05 CET 2014


On Wed, Mar 19, 2014 at 7:13 PM, Carlos Konstanski
<ckonstanski at pippiandcarlos.com> wrote:

> In real life, would I call WITH-CONTEXT...WITH-SOCKET every time I
> wanted to send a message, or would I open a socket once and keep it
> around as a singleton for the lifetime of the application?

You'd keep the socket open as long as the application was running,
unless there are explicit reasons to close it and reopen it.

-Pieter



More information about the zeromq-dev mailing list