• Felix Lange's avatar
    p2p/discover: fix UDP reply packet timeout handling · 590c99a9
    Felix Lange authored
    If the timeout fired (even just nanoseconds) before the deadline of the
    next pending reply, the timer was not rescheduled. The timer would've
    been rescheduled anyway once the next packet was sent, but there were
    cases where no next packet could ever be sent due to the locking issue
    fixed in the previous commit.
    
    As timing-related bugs go, this issue had been present for a long time
    and I could never reproduce it. The test added in this commit did
    reproduce the issue on about one out of 15 runs.
    590c99a9
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...
fdtrack Loading commit data...
generators Loading commit data...
jsre Loading commit data...
logger Loading commit data...
metrics 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...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LESSER Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...