• <legend id='Qxbbi'><style id='Qxbbi'><dir id='Qxbbi'><q id='Qxbbi'></q></dir></style></legend>

  • <small id='Qxbbi'></small><noframes id='Qxbbi'>

    <tfoot id='Qxbbi'></tfoot>

      <i id='Qxbbi'><tr id='Qxbbi'><dt id='Qxbbi'><q id='Qxbbi'><span id='Qxbbi'><b id='Qxbbi'><form id='Qxbbi'><ins id='Qxbbi'></ins><ul id='Qxbbi'></ul><sub id='Qxbbi'></sub></form><legend id='Qxbbi'></legend><bdo id='Qxbbi'><pre id='Qxbbi'><center id='Qxbbi'></center></pre></bdo></b><th id='Qxbbi'></th></span></q></dt></tr></i><div id='Qxbbi'><tfoot id='Qxbbi'></tfoot><dl id='Qxbbi'><fieldset id='Qxbbi'></fieldset></dl></div>
        <bdo id='Qxbbi'></bdo><ul id='Qxbbi'></ul>

        流行的浏览器允许多少并发 AJAX (XmlHttpRequest) 请求

        时间:2023-10-14
        <i id='USiVq'><tr id='USiVq'><dt id='USiVq'><q id='USiVq'><span id='USiVq'><b id='USiVq'><form id='USiVq'><ins id='USiVq'></ins><ul id='USiVq'></ul><sub id='USiVq'></sub></form><legend id='USiVq'></legend><bdo id='USiVq'><pre id='USiVq'><center id='USiVq'></center></pre></bdo></b><th id='USiVq'></th></span></q></dt></tr></i><div id='USiVq'><tfoot id='USiVq'></tfoot><dl id='USiVq'><fieldset id='USiVq'></fieldset></dl></div>
          <bdo id='USiVq'></bdo><ul id='USiVq'></ul>

          <tfoot id='USiVq'></tfoot>
        • <small id='USiVq'></small><noframes id='USiVq'>

            <tbody id='USiVq'></tbody>
              • <legend id='USiVq'><style id='USiVq'><dir id='USiVq'><q id='USiVq'></q></dir></style></legend>

                  本文介绍了流行的浏览器允许多少并发 AJAX (XmlHttpRequest) 请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  在 Firefox 3 中,答案是每个域 6 个:一旦对同一域的第 7 个 XmlHttpRequest(在任何选项卡上)被触发,它就会排队等待其他 6 个完成.

                  In Firefox 3, the answer is 6 per domain: as soon as a 7th XmlHttpRequest (on any tab) to the same domain is fired, it is queued until one of the other 6 finish.

                  其他主要浏览器的编号是多少?

                  What are the numbers for the other major browsers?

                  另外,是否有办法绕过这些限制而无需我的用户修改他们的浏览器设置?例如,jsonp 请求的数量是否有限制(使用脚本标签注入而不是 XmlHttpRequest 对象)?

                  Also, are there ways around these limits without having my users modify their browser settings? For example, are there limits to the number of jsonp requests (which use script tag injection rather than an XmlHttpRequest object)?

                  背景:我的用户可以从网页向服务器发出 XmlHttpRequest,要求服务器在远程主机上运行 ssh 命令.如果远程主机关闭,ssh 命令需要几分钟才能失败,最终阻止我的用户执行任何进一步的命令.

                  Background: My users can make XmlHttpRequests from a web page to the server, asking the server to run ssh commands on remote hosts. If the remote hosts are down, the ssh command takes a few minutes to fail, eventually preventing my users from performing any further commands.

                  推荐答案

                  您可以用来增加并发连接数的一个技巧是托管来自不同子域的图像.这些将被视为单独的请求,每个域都将被限制为并发最大值.

                  One trick you can use to increase the number of concurrent connections is to host your images from a different sub domain. These will be treated as separate requests, each domain is what will be limited to the concurrent maximum.

                  IE6、IE7 - 有两个限制.如果您有宽带,则 IE8 为 6 - 2(如果是拨号上网).

                  IE6, IE7 - have a limit of two. IE8 is 6 if you have a broadband - 2 (if it's a dial up).

                  这篇关于流行的浏览器允许多少并发 AJAX (XmlHttpRequest) 请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:为什么从 Firefox 浏览器访问时,现场时间数据没 下一篇:JavaScript 如何在后台处理 AJAX 响应?

                  相关文章

                  最新文章

                  <legend id='GhcT8'><style id='GhcT8'><dir id='GhcT8'><q id='GhcT8'></q></dir></style></legend>
                    <bdo id='GhcT8'></bdo><ul id='GhcT8'></ul>
                1. <tfoot id='GhcT8'></tfoot>
                  1. <small id='GhcT8'></small><noframes id='GhcT8'>

                      <i id='GhcT8'><tr id='GhcT8'><dt id='GhcT8'><q id='GhcT8'><span id='GhcT8'><b id='GhcT8'><form id='GhcT8'><ins id='GhcT8'></ins><ul id='GhcT8'></ul><sub id='GhcT8'></sub></form><legend id='GhcT8'></legend><bdo id='GhcT8'><pre id='GhcT8'><center id='GhcT8'></center></pre></bdo></b><th id='GhcT8'></th></span></q></dt></tr></i><div id='GhcT8'><tfoot id='GhcT8'></tfoot><dl id='GhcT8'><fieldset id='GhcT8'></fieldset></dl></div>