diff options
author | Mark Nunberg <mnunberg@haskalah.org> | 2018-03-04 18:17:16 +0200 |
---|---|---|
committer | Mark Nunberg <mnunberg@haskalah.org> | 2018-09-25 20:21:37 -0400 |
commit | 49974c9359ad6b58cea15106cf6511bdb31d31a9 (patch) | |
tree | 5cfbe5664581f331404fde52c5b169d5af2397dc /async.h | |
parent | 685030652cd98c5414ce554ff5b356dfe8437870 (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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |