Hi Manuel,

If you destroy the context the socket was created from, with a ling of zero
set of the socket, you will see the socket raise an exception from the
receive call. Handle the exception as a graceful terminate. I have seen no
difference between polls and direct receive calls in code that I have
written, setting the linger value on the socket is important though.

Hope that helps.


On 25 January 2013 07:13, Manuel Felicio <[email protected]> wrote:

> Hi all,
>
> I'm doing this by using Receive with 1second timeout, inside a
> while(isRunning) loop, so I can check the flag every second and dispose the
> socket, gracefully.
>
> I noticed a very slow performance when using poll reads when compared to
> plain Receive reads.
>
> I'm using c# as well (clrzmq with libzmq 3.2)
>
> Best regards,
> Manuel FelĂ­cio
>
> _______________________________________________
> zeromq-dev mailing list
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to