mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
rpc: close handler connections on read error
This commit is contained in:
parent
34aac1d756
commit
8b42a48ad1
1 changed files with 1 additions and 0 deletions
|
|
@ -652,6 +652,7 @@ func (c *Client) dispatch(codec ServerCodec) {
|
||||||
|
|
||||||
case err := <-c.readErr:
|
case err := <-c.readErr:
|
||||||
conn.handler.log.Debug("RPC connection read error", "err", err)
|
conn.handler.log.Debug("RPC connection read error", "err", err)
|
||||||
|
conn.handler.cancelRoot()
|
||||||
conn.close(err, lastOp)
|
conn.close(err, lastOp)
|
||||||
reading = false
|
reading = false
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue