Skip to content

Commit a5f9592

Browse files
committed
Change PING to ECHO to be compatible with old versions of Redis.
1 parent 9dbde8d commit a5f9592

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1812,7 +1812,7 @@ redis_sock_check_liveness(RedisSock *redis_sock)
18121812
}
18131813
gettimeofday(&tv, NULL);
18141814
uniqid_len = snprintf(uniqid, sizeof(uniqid), "phpredis_pool:%08lx%05lx:%08" PRIx32, (long)tv.tv_sec, (long)tv.tv_usec, php_mt_rand());
1815-
redis_cmd_init_sstr(&cmd, 1, "PING", sizeof("PING") - 1);
1815+
redis_cmd_init_sstr(&cmd, 1, "ECHO", sizeof("ECHO") - 1);
18161816
redis_cmd_append_sstr(&cmd, uniqid, uniqid_len);
18171817
smart_string_0(&cmd);
18181818

0 commit comments

Comments
 (0)