From: antirez Date: Mon, 12 Nov 2012 13:00:59 +0000 (+0100) Subject: MIGRATE timeout should be in milliseconds. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/26a48504cb08bc8d7682748414d82a48de1f0078 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. --- 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;