mirror of
https://github.com/status-im/op-geth.git
synced 2025-01-27 23:15:25 +00:00
rpc: reset client write deadline after write (#17549)
This fixes an issue with websocket ping frame handling.
This commit is contained in:
parent
e1c64a7d89
commit
c9a0b36a5f
@ -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…
x
Reference in New Issue
Block a user