summaryrefslogtreecommitdiff
path: root/hiredis.c
diff options
context:
space:
mode:
authorMark Nunberg <mnunberg@haskalah.org>2019-02-21 11:49:25 -0500
committerMark Nunberg <mnunberg@haskalah.org>2019-02-21 11:49:25 -0500
commit5eb6958870b71d30e3ed63e65e9f1d546dc419ec (patch)
treee2ac8ce65fa180fd28c1177089e450e3554ea868 /hiredis.c
parent1ec4aefba6d3690c461ea870eab0984a2cb597f0 (diff)
Allow option for async connections to not automatically free
Diffstat (limited to 'hiredis.c')
-rw-r--r--hiredis.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hiredis.c b/hiredis.c
index ba8d316..2506d51 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -668,6 +668,9 @@ redisContext *redisConnectWithOptions(const redisOptions *options) {
if (options->options & REDIS_OPT_REUSEADDR) {
c->flags |= REDIS_REUSEADDR;
}
+ if (options->options & REDIS_OPT_NOAUTOFREE) {
+ c->flags |= REDIS_NO_AUTO_FREE;
+ }
if (options->type == REDIS_CONN_TCP) {
redisContextConnectBindTcp(c, options->endpoint.tcp.ip,