[Seaside] Re: Concurrent requests from multiple sessions
arning315 at comcast.net
Wed Mar 11 12:40:27 UTC 2015
So, did your previous message indicate that this was still causing a
problem in VAST? And the problem is when your "DO SOME MATH" is running,
other requests to Seaside are not processed quickly/at all?
I've written your example as a single method (best way IMO to share a
problem - if at all possible) and tested it in Squeak Seaside. When the
"DO SOME MATH" is running, processing of other request to Seaside are
delayed, perhaps as much as 1 second. How does this compare to your
experience in VAST and Pharo?
| t0 |
html div: [
startTime := Time now asString.
"<DO SOME MATH>".
t0 := Time millisecondClockValue.
[(t0 - Time millisecondClockValue) abs < 30000] whileTrue.
finishTime := Time now asString.
with: 'Click me!'.
html div: 'Start: ', startTime.
html div: 'Finish: ', finishTime.
On 3/11/15 2:36 AM, wilwarin wrote:
> Hi Bob,
>> BTW, did you include some code in your message? I didn't see any if you
> yes I did. Sorry, I made it a raw text and didn't know somebody won't be
> able to see it. Let me share the code once more (no DB call inside):
> 1) getResult
> | result |
> startTime := Time now asString.
> result := "<DO SOME MATH>".
> finishTime := Time now asString.
> ^ result.
> 2) renderContentOn: html
> html div: [
> html anchor
> callback: [ self getResult. ];
> with: 'Click me!'.
> html div: 'Start: ', startTime.
> html div: 'Finish: ', finishTime.
> Guys, I really appreciate ideas you share. Thank you.
> View this message in context: http://forum.world.st/Concurrent-requests-from-multiple-sessions-tp4809929p4811143.html
> Sent from the Seaside General mailing list archive at Nabble.com.
> seaside mailing list
> seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside