[relay] Add health check attempt threshold (#2609)

* Add health check attempt threshold for receiver

* Add health check attempt threshold for sender
This commit is contained in:
Maycon Santos
2024-09-17 10:04:17 +02:00
committed by GitHub
parent b74951f29e
commit 5bc601111d
6 changed files with 240 additions and 29 deletions

View File

@ -306,7 +306,7 @@ func (c *Client) handShake() error {
func (c *Client) readLoop(relayConn net.Conn) {
internallyStoppedFlag := newInternalStopFlag()
hc := healthcheck.NewReceiver()
hc := healthcheck.NewReceiver(c.log)
go c.listenForStopEvents(hc, relayConn, internallyStoppedFlag)
var (