summaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
authorWSL <167372@zte.com.cn>2016-07-07 17:02:06 +0800
committerWSL <167372@zte.com.cn>2016-07-07 17:02:06 +0800
commit64d1ec8342e50354e6e3c5757bb99d4652dd9f3c (patch)
treeccfc4ba1dc2999f6a065f719bd51ee8f164bbff7 /net.c
parentb7205d35fd3262391be924b53eea842522149025 (diff)
fix: should close socket fd when retry connet remote (tcp)
Diffstat (limited to 'net.c')
-rw-r--r--net.c1
1 files changed, 1 insertions, 0 deletions
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 {