Skip to content

SSL Support#645

Merged
mnunberg merged 35 commits intomasterfrom
ssl
Feb 21, 2019
Merged

SSL Support#645
mnunberg merged 35 commits intomasterfrom
ssl

Conversation

@mnunberg
Copy link
Copy Markdown
Contributor

@mnunberg mnunberg commented Feb 20, 2019

This PR adds SSL support, but also a rehaul of option parsing, as well as the ability to use timeouts in async mode.

mnunberg1 and others added 30 commits February 20, 2019 09:10
We changed this to `HIREDIS_SSL`
This reduces the boilerplate of all the redisConnectXXX functions, and
allows us to provide more connection options in the future.
also, clean up redisContextInit -- we're just zeoring the struct
If callback was set before scheduleTimer was set (i..e before one of the
attach()) calls.
This will avoid the need to constantly reschedule the event
This helps us detect use-after-free
@mnunberg mnunberg mentioned this pull request Feb 20, 2019
redisLibeventEvents *e = (redisLibeventEvents*)arg;
redisAsyncHandleRead(e->context);
static void redisLibeventDestroy(redisLibeventEvents *e) {
free(e);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set data in ac to NULL (e->context->ev.data = NULL)

  1. it is safer
  2. once we would add libeventDetach it would be very important (Redislabs needs it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants