[zeromq-dev] C# socket_close Syntax

Ilja Golshtein ilejncs at narod.ru
Mon Nov 7 12:30:55 CET 2011


07.11.2011, 14:46, "Martin Sustrik" <sustrik at 250bpm.com>:
> Think of, for exmaple, bound ports. If you close the socket you want the
> port to be available for new sockets immediately rather than lingering on.

Sounds reasonable.

Coming back to topicstarter's issue, I doubt the issue is caused by GC.
If I am wrong and it is (which means operations are intensive) it is better to keep connection, 
not recreate every time.
The same is true abot zmq context. Context lifetime is probably much more important than socket lifetime
from resource perspective.


-- 
Best regards,
Ilja Golshtein.



More information about the zeromq-dev mailing list