diff options
author | Gísli Kristjánsson <gislik@hamstur.is> | 2018-09-03 22:56:30 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2018-09-03 22:56:30 +0800 |
commit | c9a0b36a5f89797672facdb2983600e22ecf6417 (patch) | |
tree | 9027b04f580c1ad5335c9b6d903972ee07f789a7 /rpc | |
parent | e1c64a7d89a7cc6ae8867ee030d3c8ead677c272 (diff) | |
download | dexon-c9a0b36a5f89797672facdb2983600e22ecf6417.tar.gz 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.go | 1 |
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 } |