aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/comms/ipc_unix.go
diff options
context:
space:
mode:
authorBas van Kervel <basvankervel@gmail.com>2015-06-25 21:54:16 +0800
committerBas van Kervel <basvankervel@gmail.com>2015-06-25 21:54:16 +0800
commit662285074e55a3915f7236a04fec355c3f416eb8 (patch)
tree87f24d50fa75351444a5992cb319cf565695b2a5 /rpc/comms/ipc_unix.go
parent5757a0edb59f854433d11982b2ba4831cceb167e (diff)
downloaddexon-662285074e55a3915f7236a04fec355c3f416eb8.tar
dexon-662285074e55a3915f7236a04fec355c3f416eb8.tar.gz
dexon-662285074e55a3915f7236a04fec355c3f416eb8.tar.bz2
dexon-662285074e55a3915f7236a04fec355c3f416eb8.tar.lz
dexon-662285074e55a3915f7236a04fec355c3f416eb8.tar.xz
dexon-662285074e55a3915f7236a04fec355c3f416eb8.tar.zst
dexon-662285074e55a3915f7236a04fec355c3f416eb8.zip
improved logging for IPC connection lifetime management
Diffstat (limited to 'rpc/comms/ipc_unix.go')
-rw-r--r--rpc/comms/ipc_unix.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/rpc/comms/ipc_unix.go b/rpc/comms/ipc_unix.go
index 5724231f4..3e71c7d32 100644
--- a/rpc/comms/ipc_unix.go
+++ b/rpc/comms/ipc_unix.go
@@ -48,7 +48,10 @@ func startIpc(cfg IpcConfig, codec codec.Codec, api shared.EthereumApi) error {
continue
}
- go handle(conn, api, codec)
+ id := newIpcConnId()
+ glog.V(logger.Debug).Infof("New IPC connection with id %06d started\n", id)
+
+ go handle(id, conn, api, codec)
}
os.Remove(cfg.Endpoint)