1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-08 02:39:26 +00:00

49270 backport ping logging to 2.11: steve side (#711)

* Backport issue 49270 to 2.11: add context to remotedialer ping logger (steve side).

* Bump remotedialer to v0.3.3

* Bump remotedialer to v0.3.5 - gets latest fix.
This commit is contained in:
Eric Promislow
2025-07-10 12:40:07 -07:00
committed by GitHub
parent a44818637f
commit c4edb77306
3 changed files with 5 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ import (
"context"
"crypto/tls"
"crypto/x509"
"fmt"
"net"
"net/http"
"strings"
@@ -72,6 +73,7 @@ func serve(ctx context.Context, dialer websocket.Dialer, url string, headers htt
return err
}
defer conn.Close()
ctx = context.WithValue(ctx, remotedialer.ContextKeyCaller, fmt.Sprintf("steve server: url:%s", url))
go func() {
<-ctx.Done()