-
Notifications
You must be signed in to change notification settings - Fork 92
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 custom timeouts for PB socket #265 [JIRA: CLIENTS-859] #265
Conversation
Hi @lukebakken, thanks for the update! |
@lukebakken: Can you get the tests to pass if you lower the timeouts in |
read and write are flaky, since they interact with my local Riak node. No matter how low I make the timeout, it's not 100% consistent - apparently my VM is just too fast 😄 I'm just going to code up a simple TCP server for these two tests, like I have here in the Node.js client |
Good idea! This way you can slow down the server response as you wish. Either your system is really too fast, or it might be that the timeout option for |
I'm running Arch Linux in a Hyper-V VM on Windows 10, with this version of Ruby:
Riak 2.1.4 (built with |
This PR adds support for custom connect, read and write timeouts for the protobuff socket.
The default timeouts by the OS are usually too high for a production app. Smaller timeouts allow the client to try another node more quickly in case of socket problems.
Ported from https://github.com/xing/riak-ruby-client/commit/67f28e1.