aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
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
}