Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2019-01-15 11:07:30 +0300
committerPavel Yatsukhnenko <p.yatsukhnenko@digitalscreens.com.ua>2019-01-18 00:05:52 +0300
commitc5994f2a42b8a348af92d3acb4edff1328ad8ce1 (patch)
treeb2f4cdc3d7986860ef4bf5e311001820cb57bd2b /cluster_library.h
parente145f8582ab9aa5bb6e986298be2e47d8063c8a0 (diff)
RedisCluster auth
Diffstat (limited to 'cluster_library.h')
-rw-r--r--cluster_library.h4
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;