-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
make network I/O non-blocking #2
Comments
In the new and revamped hiredis, a non-blocking context can be created using redisConnectNonBlock. After that, knowing when to read(2) and write(2) is up to you. |
ghost
mentioned this issue
Oct 3, 2013
This was referenced Oct 16, 2013
ghost
mentioned this issue
Jan 16, 2014
Closed
Closed
Closed
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you considered making the read/writes non-blocking?
I'd love to be able to use this in a C-based project but it cannot block. I know Redis is fast but still... :)
Something as simple as select(2) would work for readability/writability testing since there's just the one client socket.
Thoughts?
The text was updated successfully, but these errors were encountered: