diff options
author | Felix Lange <fjl@twurst.com> | 2015-08-03 08:45:33 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-08-04 09:10:27 +0800 |
commit | 5c949d3b3ba81ea0563575b19a7b148aeac4bf61 (patch) | |
tree | 05b9bbc8b837081cde166694d040ca1d9c972f45 /p2p/server.go | |
parent | bf48ed32dd8be6bec2931c9f1eee4fd749affa21 (diff) | |
download | go-tangerine-5c949d3b3ba81ea0563575b19a7b148aeac4bf61.tar go-tangerine-5c949d3b3ba81ea0563575b19a7b148aeac4bf61.tar.gz go-tangerine-5c949d3b3ba81ea0563575b19a7b148aeac4bf61.tar.bz2 go-tangerine-5c949d3b3ba81ea0563575b19a7b148aeac4bf61.tar.lz go-tangerine-5c949d3b3ba81ea0563575b19a7b148aeac4bf61.tar.xz go-tangerine-5c949d3b3ba81ea0563575b19a7b148aeac4bf61.tar.zst go-tangerine-5c949d3b3ba81ea0563575b19a7b148aeac4bf61.zip |
fdtrack: temporary hack for tracking file descriptor usage
Package fdtrack logs statistics about open file descriptors.
This should help identify the source of #1549.
Diffstat (limited to 'p2p/server.go')
-rw-r--r-- | p2p/server.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/p2p/server.go b/p2p/server.go index ba83c5503..7351a2654 100644 --- a/p2p/server.go +++ b/p2p/server.go @@ -25,6 +25,7 @@ import ( "sync" "time" + "github.com/ethereum/go-ethereum/fdtrack" "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/logger/glog" "github.com/ethereum/go-ethereum/p2p/discover" @@ -372,7 +373,7 @@ func (srv *Server) startListening() error { } laddr := listener.Addr().(*net.TCPAddr) srv.ListenAddr = laddr.String() - srv.listener = listener + srv.listener = fdtrack.WrapListener("p2p", listener) srv.loopWG.Add(1) go srv.listenLoop() // Map the TCP listening port if NAT is configured. |