test
Some checks failed
Build and Publish / Metadata (push) Successful in 5s
Build and Publish / BuildAndDeployAmd64 (push) Successful in 48s
Build and Publish / BuildAndDeployArm64 (push) Has been cancelled

This commit is contained in:
matst80
2025-10-12 22:47:13 +02:00
parent b591e3d3f5
commit 8d73f856bf
2 changed files with 2 additions and 4 deletions

View File

@@ -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(),

View File

@@ -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
}