aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/comms/http.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-08-03 08:45:33 +0800
committerFelix Lange <fjl@twurst.com>2015-08-04 09:10:27 +0800
commit5c949d3b3ba81ea0563575b19a7b148aeac4bf61 (patch)
tree05b9bbc8b837081cde166694d040ca1d9c972f45 /rpc/comms/http.go
parentbf48ed32dd8be6bec2931c9f1eee4fd749affa21 (diff)
downloadgo-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 'rpc/comms/http.go')
-rw-r--r--rpc/comms/http.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpc/comms/http.go b/rpc/comms/http.go
index c165aa27e..c08b744a1 100644
--- a/rpc/comms/http.go
+++ b/rpc/comms/http.go
@@ -29,6 +29,7 @@ import (
"io"
"io/ioutil"
+ "github.com/ethereum/go-ethereum/fdtrack"
"github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethereum/logger/glog"
"github.com/ethereum/go-ethereum/rpc/codec"
@@ -177,6 +178,7 @@ func listenHTTP(addr string, h http.Handler) (*stopServer, error) {
if err != nil {
return nil, err
}
+ l = fdtrack.WrapListener("rpc", l)
s := &stopServer{l: l, idle: make(map[net.Conn]struct{})}
s.Server = &http.Server{
Addr: addr,