good morning!!!!

Skip to content
Snippets Groups Projects
Commit c9a0b36a authored by Gísli Kristjánsson's avatar Gísli Kristjánsson Committed by Felix Lange
Browse files

rpc: reset client write deadline after write (#17549)

This fixes an issue with websocket ping frame handling. 
parent e1c64a7d
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment