summaryrefslogtreecommitdiff
path: root/sslio.h
diff options
context:
space:
mode:
authorMark Nunberg <mnunberg@haskalah.org>2017-11-27 15:49:28 -0500
committerMark Nunberg <mnunberg@haskalah.org>2019-02-20 09:10:10 -0500
commit08efa46599410e6b56ab19ed1c9a72c67476db9c (patch)
tree3d139ad26f4eeeec5ff43e8c9fe8866d6aa79a1e /sslio.h
parentba947bc93cc262c37db181f4684db1c37e803d6a (diff)
SSL for async I/O
Diffstat (limited to 'sslio.h')
-rw-r--r--sslio.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sslio.h b/sslio.h
index a410cb3..1f46b03 100644
--- a/sslio.h
+++ b/sslio.h
@@ -33,6 +33,15 @@ typedef struct redisSsl {
* previously called with in the event of an SSL_read/SSL_write situation
*/
size_t lastLen;
+
+ /** Whether the SSL layer requires read (possibly before a write) */
+ int wantRead;
+
+ /**
+ * Whether a write was requested prior to a read. If set, the write()
+ * should resume whenever a read takes place, if possible
+ */
+ int pendingWrite;
} redisSsl;
struct redisContext;