[zeromq-dev] PUSH socket behavior

Diego Fons diego.fons at intraway.com
Tue Mar 15 16:14:22 CET 2016


OK, I have something to try now...

Marcin, Doron, thank you for your replies.

Regards,
Diego.

On Tue, Mar 15, 2016 at 4:39 AM, Doron Somech <somdoron at gmail.com> wrote:

> You can also use the DONT_WAIT flag when sending. It will return -1 and
> errno set to EAGAIN if watermark reached
> On Mar 14, 2016 21:57, "Marcin Romaszewicz" <marcin at brkt.com> wrote:
>
>> Check the man page for zmq_getsockopt and zmq_poll, you can use the
>> ZMQ_POLLOUT flag to determine if the socket can send something without
>> blocking, and if it can't, you can drop it yourself.
>>
>> -- Marcin
>>
>> On Mon, Mar 14, 2016 at 11:59 AM, Diego Fons <diego.fons at intraway.com>
>> wrote:
>>
>>> Hi everyone,
>>>
>>> Is it possible to change the behavior of a PUSH socket when:
>>> - There is no PULL peer available.
>>> - The outbound queue is full.
>>>
>>> In both cases I want to drop the messages, or at least, not to block
>>> when calling the send method.
>>>
>>> Regards,
>>> Diego.
>>>
>>> --
>>> Diego Andrés Fons
>>> Intraway Corp.
>>> Solution Developer
>>> AR Office: +54 (11) 6040 4000
>>> US Office: +1 (516) 620 3890
>>> Email: diego.fons at intraway.com
>>>
>>> Visit our website at http://www.intraway.com
>>> Proud to be an ISO 9001:2008 certified company
>>>
>>> _______________________________________________
>>> zeromq-dev mailing list
>>> zeromq-dev at lists.zeromq.org
>>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>>
>>>
>>
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>
>>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>


-- 
Diego Andrés Fons
Intraway Corp.
Solution Developer
AR Office: +54 (11) 6040 4000
US Office: +1 (516) 620 3890
Email: diego.fons at intraway.com

Visit our website at http://www.intraway.com
Proud to be an ISO 9001:2008 certified company
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20160315/4552adcb/attachment.htm>


More information about the zeromq-dev mailing list