From 64d1ec8342e50354e6e3c5757bb99d4652dd9f3c Mon Sep 17 00:00:00 2001 From: WSL <167372@zte.com.cn> Date: Thu, 7 Jul 2016 17:02:06 +0800 Subject: fix: should close socket fd when retry connet remote (tcp) --- net.c | 1 + 1 file changed, 1 insertion(+) (limited to 'net.c') diff --git a/net.c b/net.c index b658e9c..7d41209 100644 --- a/net.c +++ b/net.c @@ -384,6 +384,7 @@ addrretry: if (++reuses >= REDIS_CONNECT_RETRIES) { goto error; } else { + redisContextCloseFd(c); goto addrretry; } } else { -- cgit v1.2.3