diff options
author | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2019-01-15 11:07:30 +0300 |
---|---|---|
committer | Pavel Yatsukhnenko <p.yatsukhnenko@digitalscreens.com.ua> | 2019-01-18 00:05:52 +0300 |
commit | c5994f2a42b8a348af92d3acb4edff1328ad8ce1 (patch) | |
tree | b2f4cdc3d7986860ef4bf5e311001820cb57bd2b /cluster_library.h | |
parent | e145f8582ab9aa5bb6e986298be2e47d8063c8a0 (diff) |
RedisCluster auth
Diffstat (limited to 'cluster_library.h')
-rw-r--r-- | cluster_library.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cluster_library.h b/cluster_library.h index 979b228d..366b395a 100644 --- a/cluster_library.h +++ b/cluster_library.h @@ -62,7 +62,7 @@ /* Protected sending of data down the wire to a RedisSock->stream */ #define CLUSTER_SEND_PAYLOAD(sock, buf, len) \ - (sock && !redis_sock_server_open(sock TSRMLS_CC) && sock->stream && !redis_check_eof(sock, 1 TSRMLS_CC) && \ + (sock && !cluster_sock_open(sock TSRMLS_CC) && sock->stream && !redis_check_eof(sock, 1 TSRMLS_CC) && \ php_stream_write(sock->stream, buf, len)==len) /* Macro to read our reply type character */ @@ -170,6 +170,8 @@ typedef struct redisCluster { zend_object std; #endif + zend_string *auth; + /* Timeout and read timeout (for normal operations) */ double timeout; double read_timeout; |