:: Re: [Libbitcoin] network connection…
Top Pagina
Delete this message
Reply to this message
Auteur: Amir Taaki
Datum:  
Aan: libbitcoin
Onderwerp: Re: [Libbitcoin] network connection algorithm
should be fixed (still testing) but the commit is in the repos:

https://github.com/spesmilo/libbitcoin/commit/651d6c34fa5673d7d47bf4c02c6645595f8c3c75

fixed bug where connect() was calling completion handler twice. bug was
in handshake when a node is stopped and receive_* get called with
error::service_stopped. the code was incorrectly handling errors. fix is
to correctly stop subsequent calls by setting the counter to the
clearance_count.

this is now done through the new async_parallel mechanism (see last
commit before this). async_parallel takes a callback and calls it
exactly once on the condition it is either called N times or with an error.

async_parallel:

https://github.com/spesmilo/libbitcoin/blob/master/include/bitcoin/utility/async_parallel.hpp

On 12/12/13 00:19, Noel Maersk wrote:
> On Thu, Dec 12, 2013 at 12:59:20AM +0200, Noel Maersk wrote:
>> ...
>>
>> http://veox.pw/dump/obworker-2013-12-11.gdb.txt
>>
>> ...
>
> P.S. The backtrace lists (#20 & #21) a callback from handshake.cpp,
> which could be related.
>
>
>
> _______________________________________________
> Libbitcoin mailing list
> Libbitcoin@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/libbitcoin
>