-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Set keep-alive to 0 for rocket and make the randomizer output unique numbers from a shuffled array #5296
Conversation
` FAIL for http://tfb-server:8000/updates?q=20
on the Rocket test. I guess this wasn't so simple after all :) Everything else passed though, so this is slightly weird. |
So I closed/reopened the PR to trigger a Travis rebuild and the 2nd one passed. Slightly weird. |
@vegai it's not consistent. I reran and it failed again. You may need to make sure that the random number you generate is unique, a solution that some of the Java frameworks use. |
I merely changed the keep-alive -setting though. Do you think that the Rocket test was broken also before this change and something else needs to change to stabilize it? Or that the keep-alive change alone made it unstable? |
It was probably failing verification before this when we added stricter verification testing to the toolset. Probably not a result of your changes but we don’t want to merge broken tests. You could remove that single test to get this merged or if you want to take a shot at fixing it. |
I can give it a shot. I see that
You mean this test fails if the same number is generated more than once here? I guess it would be against the rules to just pick sequential numbers? :) |
Haha, yeah no sequential numbers. My guess, from seeing it happen with a couple of other frameworks, is that there is some caching mechanism somewhere that stops a request from hitting the database if it's a number it has already seen. |
7f2609a
to
3b9d10c
Compare
rustfmt and random numbers from a shuffled vector
Seems to have worked now several times. Hopefully I didn't crap on rocket's performance by my code too badly. |
@vegai thanks for your input - I'd love to see how rockey performs, can't wait for another round |
rustfmt and random numbers from a shuffled vector
Rocket devs in rwf2/Rocket#1038 suggest that the default keep-alive -setting might cause problems for Rocket.