Skip to content

Commit

Permalink
rephrase error message
Browse files Browse the repository at this point in the history
  • Loading branch information
qdongxu committed Sep 7, 2023
1 parent 1b8196e commit 55d7fd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion probe/websocket/ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (h *WebSocket) DoProbe() (bool, string) {
case <-t.C:
ws.Close()
wg.Wait()
return false, ""
return false, "ping timeout"
case <-pingPongChan:
*remaining = h.ProbeTimeout - time.Now().Sub(begin)
closeCode := bytes.NewBufferString(fmt.Sprintf("%d", websocket.CloseNormalClosure))
Expand Down

0 comments on commit 55d7fd4

Please sign in to comment.