aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorGísli Kristjánsson <gislik@hamstur.is>2018-09-03 22:56:30 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-09-03 22:56:30 +0800
commitc9a0b36a5f89797672facdb2983600e22ecf6417 (patch)
tree9027b04f580c1ad5335c9b6d903972ee07f789a7 /rpc
parente1c64a7d89a7cc6ae8867ee030d3c8ead677c272 (diff)
downloaddexon-c9a0b36a5f89797672facdb2983600e22ecf6417.tar
dexon-c9a0b36a5f89797672facdb2983600e22ecf6417.tar.gz
dexon-c9a0b36a5f89797672facdb2983600e22ecf6417.tar.bz2
dexon-c9a0b36a5f89797672facdb2983600e22ecf6417.tar.lz
dexon-c9a0b36a5f89797672facdb2983600e22ecf6417.tar.xz
dexon-c9a0b36a5f89797672facdb2983600e22ecf6417.tar.zst
dexon-c9a0b36a5f89797672facdb2983600e22ecf6417.zip
rpc: reset client write deadline after write (#17549)
This fixes an issue with websocket ping frame handling.
Diffstat (limited to 'rpc')
-rw-r--r--rpc/client.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/rpc/client.go b/rpc/client.go
index a2ef2ed6b..d96189a2d 100644
--- a/rpc/client.go
+++ b/rpc/client.go
@@ -487,6 +487,7 @@ func (c *Client) write(ctx context.Context, msg interface{}) error {
}
c.writeConn.SetWriteDeadline(deadline)
err := json.NewEncoder(c.writeConn).Encode(msg)
+ c.writeConn.SetWriteDeadline(time.Time{})
if err != nil {
c.writeConn = nil
}