summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornot-a-robot <not-a-robot@rediger.net>2016-07-09 13:26:58 +0200
committerGitHub <noreply@github.com>2016-07-09 13:26:58 +0200
commit5f98e1d35dcf00a026793ada2662f6e1ba77eb17 (patch)
treeccfc4ba1dc2999f6a065f719bd51ee8f164bbff7
parentb7205d35fd3262391be924b53eea842522149025 (diff)
parent64d1ec8342e50354e6e3c5757bb99d4652dd9f3c (diff)
Auto merge of #445 - xxvv:master, r=badboy
fix: should close socket fd when retry connect (tcp)
-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 {