diff options
author | Bas van Kervel <bas@ethdev.com> | 2015-06-16 19:07:13 +0800 |
---|---|---|
committer | Bas van Kervel <bas@ethdev.com> | 2015-06-22 14:54:21 +0800 |
commit | fd764d4ff7bd7e75dfdd7f733f50dd3805d4b3f2 (patch) | |
tree | 58af87ef1e8c78cfb05a6b756ad5e0b283590a0f /rpc/comms/comms.go | |
parent | 60c2ccd99cd9acdb628a9ba5e16ad0e7e52b7e17 (diff) | |
download | go-tangerine-fd764d4ff7bd7e75dfdd7f733f50dd3805d4b3f2.tar go-tangerine-fd764d4ff7bd7e75dfdd7f733f50dd3805d4b3f2.tar.gz go-tangerine-fd764d4ff7bd7e75dfdd7f733f50dd3805d4b3f2.tar.bz2 go-tangerine-fd764d4ff7bd7e75dfdd7f733f50dd3805d4b3f2.tar.lz go-tangerine-fd764d4ff7bd7e75dfdd7f733f50dd3805d4b3f2.tar.xz go-tangerine-fd764d4ff7bd7e75dfdd7f733f50dd3805d4b3f2.tar.zst go-tangerine-fd764d4ff7bd7e75dfdd7f733f50dd3805d4b3f2.zip |
added comms http
Diffstat (limited to 'rpc/comms/comms.go')
-rw-r--r-- | rpc/comms/comms.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rpc/comms/comms.go b/rpc/comms/comms.go index 3f458adfd..2af63e55d 100644 --- a/rpc/comms/comms.go +++ b/rpc/comms/comms.go @@ -11,6 +11,11 @@ import ( "github.com/ethereum/go-ethereum/rpc/shared" ) +const ( + jsonrpcver = "2.0" + maxHttpSizeReqLength = 1024 * 1024 // 1MB +) + type EthereumClient interface { Close() Send(interface{}) error @@ -26,7 +31,7 @@ func handle(conn net.Conn, api api.EthereumApi, c codec.Codec) { codec.Close() return } else if err != nil { - glog.V(logger.Error).Infof("IPC recv err - %v\n", err) + glog.V(logger.Error).Infof("comms recv err - %v\n", err) codec.Close() return } |