diff options
author | WSL <167372@zte.com.cn> | 2016-07-07 17:02:06 +0800 |
---|---|---|
committer | WSL <167372@zte.com.cn> | 2016-07-07 17:02:06 +0800 |
commit | 64d1ec8342e50354e6e3c5757bb99d4652dd9f3c (patch) | |
tree | ccfc4ba1dc2999f6a065f719bd51ee8f164bbff7 /net.c | |
parent | b7205d35fd3262391be924b53eea842522149025 (diff) |
fix: should close socket fd when retry connet remote (tcp)
Diffstat (limited to 'net.c')
-rw-r--r-- | net.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -384,6 +384,7 @@ addrretry: if (++reuses >= REDIS_CONNECT_RETRIES) { goto error; } else { + redisContextCloseFd(c); goto addrretry; } } else { |