]> Sergey Matveev's repositories - btrtrc.git/commit
Avoid calling net.Conn methods with the Client mutex locked
authorMatt Joiner <anacrolix@gmail.com>
Wed, 17 Nov 2021 03:00:50 +0000 (14:00 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 17 Nov 2021 03:00:50 +0000 (14:00 +1100)
commit0f81e0011ffa601c12a3d21d8537a0e436d4da28
tree68c1e86cedc71eb400ac5679b274352a22ce8212
parente81e12fab152ccd4cfe94eddf98cb92a04c0d3be
Avoid calling net.Conn methods with the Client mutex locked

The utp firewall callback might want to use it. I can't think of a better way to determine with an incoming connection request should be blocked.
client.go
peerconn.go
torrent.go