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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user