summaryrefslogtreecommitdiff
path: root/async.h
diff options
context:
space:
mode:
authorMark Nunberg <mnunberg@haskalah.org>2018-03-04 18:17:16 +0200
committerMark Nunberg <mnunberg@haskalah.org>2018-09-25 20:21:37 -0400
commit49974c9359ad6b58cea15106cf6511bdb31d31a9 (patch)
tree5cfbe5664581f331404fde52c5b169d5af2397dc /async.h
parent685030652cd98c5414ce554ff5b356dfe8437870 (diff)
Call connect(2) again for non-blocking connect
This retrieves the actual error which occurred, as getsockopt is not always reliable in this regard.
Diffstat (limited to 'async.h')
-rw-r--r--async.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/async.h b/async.h
index e69d840..740555c 100644
--- a/async.h
+++ b/async.h
@@ -93,6 +93,10 @@ typedef struct redisAsyncContext {
/* Regular command callbacks */
redisCallbackList replies;
+ /* Address used for connect() */
+ struct sockaddr *saddr;
+ size_t addrlen;
+
/* Subscription callbacks */
struct {
redisCallbackList invalid;