HomePhabricator

Condition variable for outbound connection slots
092631f0ba00Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Condition variable for outbound connection slots

Keep a global counter for nOutbound, protected with its own waitable
critical section, and wait when all outbound slots are filled, rather
than polling.

This removes the (on average) 1 second delay between a lost connection
and a new connection attempt, and may speed up shutdowns.

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Apr 4 2012, 14:01
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING712fd182b72b: Locking system overhaul, add condition variables
Branches
Unknown
Tags
Unknown

Event Timeline

Pieter Wuille <pieter.wuille@gmail.com> committed rSTAGING092631f0ba00: Condition variable for outbound connection slots (authored by Pieter Wuille <pieter.wuille@gmail.com>).Apr 4 2012, 15:24