operation timeout
This is the same pull request as #329, just rebased (I'll close the old one)
Add a timeout to read socket to be possible stop the process when the server is taking too long to answer due to high load or a heavy query
:+1: @wandenberg but Travis builds fail
@wandenberg thanks for the PR, do you mind squashing the commits in one, and add a changelog entry?
@durran @estolfo can you guys have a look, does this make sense?
@arthurnn I squashed in three commit because it were originally three different features. If you want to I can squash in only one, but this way is better to understand what was done
We use this in production and it does work as expected.
Coverage decreased (-0.59%) to 93.3% when pulling 1deb6e76328ef5ac3b10457c2dc49e9af6e66694 on wandenberg:operation_timeout into 68923e0cfba9607398b6f5df270abeb8a429efb8 on mongoid:master.
Coverage decreased (-0.06%) to 93.83% when pulling 1deb6e76328ef5ac3b10457c2dc49e9af6e66694 on wandenberg:operation_timeout into 68923e0cfba9607398b6f5df270abeb8a429efb8 on mongoid:master.
Coverage decreased (-0.06%) to 93.83% when pulling 470224c0361f21112d1a988982af2702f73d9eb2 on wandenberg:operation_timeout into 68923e0cfba9607398b6f5df270abeb8a429efb8 on mongoid:master.
Any updates on this one? /cc @durran @estolfo