libbitcoin / libbitcoin-network

Bitcoin P2P Network Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Manage memory usage from outgoing message queuing.

evoskuil opened this issue · comments

Incoming blocks block the receiver during processing (of the second block waiting on the first). However outgoing blocks are processed sequentially but buffered on the send call. So all queried blocks will accumulate in the send buffer (dispatch sequencer via dispathc.lock/unlock). This can produce a low memory state for the sender.

image

The above scenario is valid but the image is likely caused by #116.

Resolved in 3.1