<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Georgia">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? <br>
<br>
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 </font><font face="Georgia"><font
face="Georgia">"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?<br>
<br>
</font>renderContentOn: html<br>
<br>
| t0 |<br>
<br>
html div: [<br>
html anchor<br>
callback: [<br>
"self getResult." <br>
startTime := Time now asString.<br>
"<DO SOME MATH>".<br>
t0 := Time millisecondClockValue.<br>
[(t0 - Time millisecondClockValue) abs < 30000]
whileTrue.<br>
finishTime := Time now asString.<br>
];<br>
with: 'Click me!'.<br>
].<br>
<br>
html div: 'Start: ', startTime.<br>
html div: 'Finish: ', finishTime.<br>
<br>
<br>
</font><br>
<div class="moz-cite-prefix">On 3/11/15 2:36 AM, wilwarin wrote:<br>
</div>
<blockquote cite="mid:1426055763450-4811143.post@n4.nabble.com"
type="cite">
<pre wrap="">Hi Bob,
</pre>
<blockquote type="cite">
<pre wrap="">BTW, did you include some code in your message? I didn't see any if you
did.
</pre>
</blockquote>
<pre wrap="">
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.
Cheers.
Ondrej
--
View this message in context: <a class="moz-txt-link-freetext" href="http://forum.world.st/Concurrent-requests-from-multiple-sessions-tp4809929p4811143.html">http://forum.world.st/Concurrent-requests-from-multiple-sessions-tp4809929p4811143.html</a>
Sent from the Seaside General mailing list archive at Nabble.com.
_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
</blockquote>
<br>
</body>
</html>