mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
rpc: reset write deadline
This commit is contained in:
parent
62e94895da
commit
34f0d6ae06
1 changed files with 1 additions and 0 deletions
|
|
@ -487,6 +487,7 @@ func (c *Client) write(ctx context.Context, msg interface{}) error {
|
||||||
}
|
}
|
||||||
c.writeConn.SetWriteDeadline(deadline)
|
c.writeConn.SetWriteDeadline(deadline)
|
||||||
err := json.NewEncoder(c.writeConn).Encode(msg)
|
err := json.NewEncoder(c.writeConn).Encode(msg)
|
||||||
|
c.writeConn.SetWriteDeadline(time.Time{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.writeConn = nil
|
c.writeConn = nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue