plugeth/p2p/nat
Felix Lange 983f5a717a p2p/nat: fix concurrent access to autodisc Interface
Concurrent calls to Interface methods on autodisc could return a "not
discovered" error if the discovery did not finish before the call.
autodisc.wait expected the done channel to carry the found Interface
but it was closed instead.

The fix is to use sync.Once for now, which is easier to get right.
And there is a test. Finally.

This will have to change again when we introduce re-discovery.
2015-05-14 03:53:11 +02:00
..
nat_test.go p2p/nat: fix concurrent access to autodisc Interface 2015-05-14 03:53:11 +02:00
nat.go p2p/nat: fix concurrent access to autodisc Interface 2015-05-14 03:53:11 +02:00
natpmp.go p2p/nat: new package for port mapping stuff 2015-02-13 11:39:31 +01:00
natupnp.go p2p/nat: switch to github.com/huin/goupnp 2015-02-17 13:10:11 +01:00