Commit 64d1ec83 authored by WSL's avatar WSL
Browse files

fix: should close socket fd when retry connet remote (tcp)

parent b7205d35
...@@ -384,6 +384,7 @@ addrretry: ...@@ -384,6 +384,7 @@ addrretry:
if (++reuses >= REDIS_CONNECT_RETRIES) { if (++reuses >= REDIS_CONNECT_RETRIES) {
goto error; goto error;
} else { } else {
redisContextCloseFd(c);
goto addrretry; goto addrretry;
} }
} else { } else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment