From 8d73f856bfcc4354ba2d36bc4c78372db48b6aa0 Mon Sep 17 00:00:00 2001 From: matst80 Date: Sun, 12 Oct 2025 22:47:13 +0200 Subject: [PATCH] test --- pkg/actor/grpc_server.go | 4 +--- pkg/proxy/remotehost.go | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/actor/grpc_server.go b/pkg/actor/grpc_server.go index 98b34dd..f41e773 100644 --- a/pkg/actor/grpc_server.go +++ b/pkg/actor/grpc_server.go @@ -46,9 +46,7 @@ func (s *ControlServer[V]) AnnounceExpiry(ctx context.Context, req *messages.Exp // ControlPlane: Ping func (s *ControlServer[V]) Ping(ctx context.Context, _ *messages.Empty) (*messages.PingReply, error) { - // Expose cart owner cookie (first-touch owner = this host) for HTTP gateways translating gRPC metadata. - // Gateways that propagate Set-Cookie can help establish sticky sessions at the edge. - //_ = grpc.SendHeader(ctx, metadata.Pairs("set-cookie", fmt.Sprintf("cartowner=%s; Path=/; HttpOnly", s.syncedPool.Hostname()))) + return &messages.PingReply{ Host: s.pool.Hostname(), UnixTime: time.Now().Unix(), diff --git a/pkg/proxy/remotehost.go b/pkg/proxy/remotehost.go index a7d90b8..c921a0d 100644 --- a/pkg/proxy/remotehost.go +++ b/pkg/proxy/remotehost.go @@ -88,7 +88,7 @@ func (h *RemoteHost) Ping() bool { cancel() if err != nil { h.MissedPings++ - log.Printf("Ping %s failed (%d)", h.Host, h.MissedPings) + log.Printf("Ping %s failed (%d) %v", h.Host, h.MissedPings, err) return false }