diff options
author | Mark Nunberg <mnunberg@haskalah.org> | 2019-02-21 11:49:25 -0500 |
---|---|---|
committer | Mark Nunberg <mnunberg@haskalah.org> | 2019-02-21 11:49:25 -0500 |
commit | 5eb6958870b71d30e3ed63e65e9f1d546dc419ec (patch) | |
tree | e2ac8ce65fa180fd28c1177089e450e3554ea868 /hiredis.c | |
parent | 1ec4aefba6d3690c461ea870eab0984a2cb597f0 (diff) |
Allow option for async connections to not automatically free
Diffstat (limited to 'hiredis.c')
-rw-r--r-- | hiredis.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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, |