Revert "Remove closing when pings fail to send"

This reverts commit aea4f98e8c.
This commit is contained in:
Lisa Kim 2020-07-24 13:57:28 -07:00 committed by Russell Jones
parent fa0e2b7803
commit 33143e44f5

View file

@ -320,6 +320,7 @@ func (t *TerminalHandler) startPingLoop(ws *websocket.Conn) {
// https://github.com/golang/net/blob/master/websocket/hybi.go#L291
if err := codec.Send(ws, nil); err != nil {
t.log.Errorf("Unable to send ping frame to web client: %v.", err)
t.Close()
return
}
case <-t.terminalContext.Done():