Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL Support #645

Merged
merged 35 commits into from
Feb 21, 2019
Merged

SSL Support #645

merged 35 commits into from
Feb 21, 2019

Conversation

mnunberg
Copy link
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.

mnunberg 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);

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.

4 participants