[
https://issues.apache.org/jira/browse/TOBAGO-271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470931
]
Oliver Turnwald commented on TOBAGO-271:
----------------------------------------
Hi Volker,
we found out by debugging that requests.length is 2 right before the freeze at
this point for the first time. Then it seems that no request will be executed
at all. I don't think, that it is a timeout problem, as it works fine with the
other ajax component deactivated. Fact is, that the amount of data per request
is quite big (sheet with up to 140K) - so it takes some time and there is a big
chance for a collision.
Additionally I suggest to keep an eye on the fact that the freeze only happens
in IE, but never in Firefox. Have you ever heard of problems with IE managing
concurrent requests?
Thanks,
Oliver
> Concurrent requests can result in a full freeze
> -----------------------------------------------
>
> Key: TOBAGO-271
> URL: https://issues.apache.org/jira/browse/TOBAGO-271
> Project: MyFaces Tobago
> Issue Type: Bug
> Affects Versions: 1.0.9
> Environment: Internet Explorer (Firefox seems to be ok)
> Reporter: Dennis Hauser
> Attachments: screenshot-1.jpg
>
>
> When there is more than one ajax component on a page, the client somtimes
> freezes. It seems that if there is more than one request in the queue, the
> system will stop working (no submit possible). The last debug message is
> "Request queued!", which seems to come from the following code in tobago.js:
> Tobago.Transport = {
> requests: new Array(),
> pageSubmited: false,
> request: function(req, submitPage) {
> if (submitPage) {
> this.pageSubmited = true;
> this.requests.push(req);
> } else if (!this.pageSubmited) {
> this.requests.push(req);
> } else {
> return;
> }
> if (this.requests.length == 1) { <---------------------------
> maybe this is the problem. What about "this.requests.length > 0" ?
> LOG.debug("Execute request!");
> this.requests[0]();
> } else {
> LOG.debug("Request queued!");
> }
> },
> requestComplete: function() {
> this.requests.shift();
> LOG.debug("Request complete! Queue size : " + this.requests.length);
> if (this.requests.length > 0) {
> LOG.debug("Execute request!");
> this.requests[0]();
> }
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.