plugeth/p2p/discover
Felix Lange 590c99a98f p2p/discover: fix UDP reply packet timeout handling
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.
2015-08-11 11:42:17 +02:00
..
database_test.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
database.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
node_test.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
node.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
table_test.go p2p/discover: unlock the table during ping replacement 2015-08-11 11:42:17 +02:00
table.go p2p/discover: unlock the table during ping replacement 2015-08-11 11:42:17 +02:00
udp_test.go p2p/discover: fix UDP reply packet timeout handling 2015-08-11 11:42:17 +02:00
udp.go p2p/discover: fix UDP reply packet timeout handling 2015-08-11 11:42:17 +02:00