Closed Stebalien closed 4 years ago
We keep running into races so I figured we might as well just make this all thread-safe. It should have no effect on performance.
The actual bug was setting the write deadline while writing. But we might as well just have read and write locks.
fixes https://github.com/libp2p/go-libp2p-swarm/issues/205
We keep running into races so I figured we might as well just make this all thread-safe. It should have no effect on performance.
The actual bug was setting the write deadline while writing. But we might as well just have read and write locks.
fixes https://github.com/libp2p/go-libp2p-swarm/issues/205