Closed kacperzuk closed 9 years ago
That behavior is not expected. The issue was introduced in the latest release. I'll fix it asap.
Thank you for reporting.
Here's my attempt of fixing this: https://github.com/kacperzuk/rocky/commit/2f82c6602e7dfa1fdcccc26e69055d888294ab03 .
I'm not sure it's the best way, but it passes tests and fixes the problem for me. I'll gladly make a PR if you think it's good enough.
Thanks for the proposal.
This is now fixed and properly tested in rocky@0.4.6
.
Feel free to update your dependency tree:
npm i rocky --force
I'm trying to make rocky#balance work, but even the example seems to work incorrectly. It returns:
While I expected something more like:
When I take the first server down, then it's even worse, as I only get
Status: 502 from server: rocky
, it never tries other (working) servers.Is that an expected behavior?