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

Support timeouts in libev adapater #795

Merged
merged 2 commits into from
May 4, 2020

Conversation

michael-grunder
Copy link
Collaborator

Adds the ability to set a timeout when using the libev adapter.

The libev docs around timeouts.

They describe a variety of ways to handle timeouts with the event lib, and I went with option 2.

adapters/libev.h Outdated Show resolved Hide resolved
adapters/libev.h Outdated Show resolved Hide resolved
* Change timeout scheduling function name to redisLibevSetTimeout
  to align with redisLibevSetTimeout.

* Stop scheduling timer on attach to align with what our libevent
  adapter does.

See redis#795
Copy link
Member

@yossigo yossigo left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@michael-grunder michael-grunder merged commit 994d2fd into redis:master May 4, 2020
@michael-grunder michael-grunder deleted the libev-timeout branch May 5, 2020 05:36
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.

2 participants