• Felix Lange's avatar
    p2p: throttle all discovery lookups · 6fb810ad
    Felix Lange authored
    Lookup calls would spin out of control when network connectivity was
    lost. The throttling that was in place only took effect when the table
    returned zero results, which doesn't happen very often.
    
    The new throttling should not have a negative impact when the host is
    online. Lookups against the network take some time and dials for all
    results must complete or hit the cache before a new one is started. This
    usually takes longer than four seconds, leaving online lookups
    unaffected.
    
    Fixes #1296
    6fb810ad
Name
Last commit
Last update
Godeps Loading commit data...
_data Loading commit data...
accounts Loading commit data...
build Loading commit data...
cmd Loading commit data...
common Loading commit data...
compression/rle Loading commit data...
core Loading commit data...
crypto Loading commit data...
docker Loading commit data...
errs Loading commit data...
eth Loading commit data...
ethdb Loading commit data...
event Loading commit data...
generators Loading commit data...
jsre Loading commit data...
logger Loading commit data...
miner Loading commit data...
p2p Loading commit data...
params Loading commit data...
pow Loading commit data...
rlp Loading commit data...
rpc Loading commit data...
tests Loading commit data...
trie Loading commit data...
whisper Loading commit data...
xeth Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
update-license.go Loading commit data...