Begin tracking use of file descriptors in UDP tracker
This commit is contained in:
parent
3a206d4f12
commit
9824041e5a
|
@ -12,6 +12,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/anacrolix/missinggo"
|
||||
"github.com/anacrolix/missinggo/pproffd"
|
||||
|
||||
"github.com/anacrolix/torrent/util"
|
||||
)
|
||||
|
@ -251,6 +252,7 @@ func (c *udpClient) Connect() (err error) {
|
|||
if err != nil {
|
||||
return
|
||||
}
|
||||
c.socket = pproffd.WrapNetConn(c.socket)
|
||||
}
|
||||
b, err := c.request(Connect, nil, nil)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue