-
Notifications
You must be signed in to change notification settings - Fork 280
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
ajaxPostTimeout doesn't have to be multiplied by 1000, because it is use... #1637
Conversation
…used as is on ScriptRenderer, so the client should just get the same value in both cases (well, ajaxPostTimeout should be the same timeout + 500ms) fixes #1617
Will try and give this a test spin tomorrow, but the code looks good here. |
👀 |
So, what should I do to test this, exactly? I need to create the conditions that |
Make something that will take longer than a single AJAX cycle to compute (typically 5s I believe?) via |
👀 |
Ok, so I couldn't successfully see this working. Here was my testing procedure.
case Right(future) =>
val ret = future.get(ajaxPostTimeout) openOr {
println("ABORTING!")
Failure("AJAX retry timeout.")
}
ret
The thread does sleep, and the post timeout does occur, but I never see "ABORTING!" printed to the console. 😕 |
Poke. |
I'm seeing expected behavior:
With: println(s"Waiting on future for $ajaxPostTimeout")
val ret = future.get(ajaxPostTimeout) openOr Failure("AJAX retry timeout.")
println(s"Got dat $ret") Make sure you published the Scala 2.11 version locally; I initially published the 2.10 version by accident and didn't see the behavior. 👍 from me but let's let @farmdawgnation give it another shot as well. |
Maybe that's what happened. Let me try again real quick. |
Ok, I'm now seeing the expected behavior. Let's ship it. |
Fix an issue in ajaxPostTimeout calculation in LiftServlet that caused futures to stick around spinning longer than they should have.
...d as is on ScriptRenderer, so the client should just get the same value in both cases
(well, ajaxPostTimeout should be the same timeout + 500ms)
fixes #1617