Php 异步ajax请求不是';t真正异步(JQuery和Zend)

Php 异步ajax请求不是';t真正异步(JQuery和Zend),php,jquery,ajax,zend-framework,Php,Jquery,Ajax,Zend Framework,我有一堆ajax请求: $("someTable tr").each(function() { // send the data. var scriptURL = "/module/action/data/" + $(this).find(".data").html() + "/"; document.cyonVars.xhrPool[count] = $.ajax({ type: "GET", url: scriptURL, queue: "

我有一堆ajax请求:

$("someTable tr").each(function() {

    // send the data.
    var scriptURL = "/module/action/data/" + $(this).find(".data").html() + "/";

    document.cyonVars.xhrPool[count] = $.ajax({
    type: "GET",
    url: scriptURL,
    queue: "autocomplete",
    cancelExisting: true,
    dataType: 'json',

    success: function(data){

       // do something

        }

    }
    });
    count++;
})
当这些请求运行时,用户可以按下按钮。这会触发另一个ajax请求。诸如此类:

var scriptURL = "/module/anotheraction/" +
data) + "/";

$.ajax({
    type: "GET",
    url: scriptURL,
    queue: "autocomplete",
    cancelExisting: true,
    dataType: 'json',

    success: function(data){
    // Do another thing
    }
});

来自响应异步的第一个操作的请求如我所愿。当用户触发第二个请求时,用户将等待其他请求完成。但第二个请求应该提前进行。我已经使用了session\u write\u close()但没有改变任何东西。谢谢你的帮助

我不太确定,是否应该进一步处理。浏览器对与同一服务器的连接有限制,如果一个请求需要很长时间才能回复,那么您的应用程序可能会在几个或多个请求上停止。试想一下,异步请求是异步发送的(ajax请求后的代码继续执行),但请求是按顺序执行的。

问题在于Zend_会话::Start()


在处理异步请求时,我不得不避免使用Zend_会话

谢谢。问题是zend session。当您调用zend_会话::start()时,它会锁定所有内容