plugeth/p2p
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
..
discover p2p/discover: fix UDP reply packet timeout handling 2015-08-11 11:42:17 +02:00
nat p2p/nat: disable UPnP test on windows 2015-08-06 17:18:59 +02:00
dial_test.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
dial.go fdtrack: temporary hack for tracking file descriptor usage 2015-08-04 03:10:27 +02:00
message_test.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
message.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
metrics.go fdtrack: temporary hack for tracking file descriptor usage 2015-08-04 03:10:27 +02:00
peer_error.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
peer_test.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
peer.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
protocol.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
rlpx_test.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
rlpx.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
server_test.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
server.go fdtrack: temporary hack for tracking file descriptor usage 2015-08-04 03:10:27 +02:00