[zeromq-dev] need advice to debug an alternative to CURVE in a multithread test
Laurent Alebarde
l.alebarde at free.fr
Mon Oct 28 16:30:10 CET 2013
Thanks anyway Pieter. I found a description
<http://zeromq.org/whitepapers:architecture> of the internals of libzmq
2, but nothing about timeouts. Thought, when I run
test_concurrency_curve.cpp <http://pastebin.com/3xUbWEPj> with 2 ms
delays into :
* zmq::curve_client_t::next_handshake_command
* zmq::curve_client_t::process_handshake_command
* zmq::curve_server_t::next_handshake_command
* zmq::curve_server_t::process_handshake_command
it stops working correctly (1 ms works well). I have not investigated
the causes (just used DTOR traces), but I think it is expected to work ?
Otherwise, the library may fail to work properly in some exceptional
cases (may be concurrent running of more proprietary big processes), or
in my case more cpu consumming mechanisms would fail.
What do you think of that ? Should it be fixed ?
Le 25/10/2013 17:29, Pieter Hintjens a écrit :
> Laurent, I'm sorry, I don't know the internals of how mechanisms
> handle timeouts.
>
> On Fri, Oct 25, 2013 at 5:25 PM, Laurent Alebarde <l.alebarde at free.fr> wrote:
>> The problem exists even in a normal run. Investigating without a debugger is
>> very difficult.
>>
>> What are the "timeouts" available in libzmq internals I can play with ?
>>
>> I have one point to examine: in my trace, I have indented depending on the
>> client id, and some printf are not in the good columns. That may be a good
>> start I assume ?
>>
>>
>> Le 25/10/2013 17:17, Pieter Hintjens a écrit :
>>
>> On Fri, Oct 25, 2013 at 4:22 PM, Laurent Alebarde <l.alebarde at free.fr>
>> wrote:
>>
>> My question is:
>> Considering CURVE, Is there some time delay I should deactivate when some
>> threads are paused ?
>>
>> Are you still using a debugger? That is always going to make things
>> work bizarrely.
>>
>> You should use whatever timeout seems reasonable, and tune it if you
>> find problems with your first choice.
>>
>> -Pieter
>> _______________________________________________
>> 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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20131028/b94a740d/attachment.htm>
More information about the zeromq-dev
mailing list