From 26a48504cb08bc8d7682748414d82a48de1f0078 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 12 Nov 2012 14:00:59 +0100 Subject: [PATCH] MIGRATE timeout should be in milliseconds. While it is documented that the MIGRATE timeout is in milliseconds, it was in seconds instead. This commit fixes the problem. --- src/migrate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/migrate.c b/src/migrate.c index 86dfe165..be1ea920 100644 --- a/src/migrate.c +++ b/src/migrate.c @@ -157,7 +157,7 @@ void migrateCommand(redisClient *c) { server.neterr); return; } - if ((aeWait(fd,AE_WRITABLE,timeout*1000) & AE_WRITABLE) == 0) { + if ((aeWait(fd,AE_WRITABLE,timeout) & AE_WRITABLE) == 0) { close(fd); addReplySds(c,sdsnew("-IOERR error or timeout connecting to the client\r\n")); return; -- 2.45.2