Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
4127e448
Commit
4127e448
authored
Jan 09, 2018
by
Mark Nunberg
Browse files
Don't add dead code for HIREDIS_NOSSL
We changed this to `HIREDIS_SSL`
parent
bc2a8f37
Changes
1
Hide whitespace changes
Inline
Side-by-side
async.c
View file @
4127e448
...
...
@@ -525,10 +525,12 @@ static int __redisAsyncHandleConnect(redisAsyncContext *ac) {
}
}
#ifndef HIREDIS_NOSSL
/**
* Handle SSL when socket becomes available for reading. This also handles
* read-while-write and write-while-read
* read-while-write and write-while-read.
*
* These functions will not work properly unless `HIREDIS_SSL` is defined
* (however, they will compile)
*/
static
void
asyncSslRead
(
redisAsyncContext
*
ac
)
{
int
rv
;
...
...
@@ -592,19 +594,6 @@ static void asyncSslWrite(redisAsyncContext *ac) {
/* Always reschedule a read */
_EL_ADD_READ
(
ac
);
}
#else
/* Just so we're able to compile */
static
void
asyncSslRead
(
redisAsyncContext
*
ac
)
{
abort
();
(
void
)
ac
;
}
static
void
asyncSslWrite
(
redisAsyncContext
*
ac
)
{
abort
();
(
void
)
ac
;
}
#endif
/* This function should be called when the socket is readable.
* It processes all replies that can be read and executes their callbacks.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment