grid: Return rejection reason (#18834)

When rejecting incoming grid requests fill out the rejection reason and log it once.

This will give more context when startup is failing. Already logged after a retry on caller.
This commit is contained in:
Klaus Post
2024-01-19 10:35:24 -08:00
committed by GitHub
parent cc960adbee
commit 83bf15a703
2 changed files with 28 additions and 23 deletions

View File

@@ -786,7 +786,7 @@ func (c *Connection) handleIncoming(ctx context.Context, conn net.Conn, req conn
if debugPrint {
fmt.Println("expected to be client side, not server side")
}
return errors.New("expected to be client side, not server side")
return errors.New("grid: expected to be client side, not server side")
}
msg := message{
Op: OpConnectResponse,