HomePhabricator

Cap nAttempts penalty at 8 and switch to pow instead of a division loop.
a784f90c9892Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Cap nAttempts penalty at 8 and switch to pow instead of a division loop.

On hosts that had spent some time with a failed internet connection their
nAttempts penalty was going through the roof (e.g. thousands for all peers)
and as a result the connect search was pegging the CPU and failing to get
more than a 4 connections after days of running (because it was taking so
long per try).

Details

Provenance
Gregory Maxwell <greg@xiph.org>Authored on Apr 19 2015, 18:47
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING8f955b966122: Merge pull request #6012
Branches
Unknown
Tags
Unknown

Event Timeline