From 0ea34381ab701e66368a9d8b6f199f4581e800b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radim=20Vaculi=CC=81k?= Date: Wed, 4 Mar 2026 19:26:06 +0100 Subject: [PATCH] Tracy: disconnect before ping to always measure full TCP latency --- src/Tracy/RedisPanel.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Tracy/RedisPanel.php b/src/Tracy/RedisPanel.php index 1be664b..415e3ea 100644 --- a/src/Tracy/RedisPanel.php +++ b/src/Tracy/RedisPanel.php @@ -40,6 +40,8 @@ public function getPanel(): string $connections = $this->connections; foreach ($connections as $key => $connection) { + $connection['client']->disconnect(); + $start = microtime(true); try { $connections[$key]['ping'] = $connection['client']->ping('ok');