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

        <tfoot id='oGp6s'></tfoot>

        <small id='oGp6s'></small><noframes id='oGp6s'>

        <legend id='oGp6s'><style id='oGp6s'><dir id='oGp6s'><q id='oGp6s'></q></dir></style></legend>

        urllib3 connectionpool - 连接池已满,丢弃连接

        urllib3 connectionpool - Connection pool is full, discarding connection(urllib3 connectionpool - 连接池已满,丢弃连接)

          <tbody id='zRSHA'></tbody>
      1. <legend id='zRSHA'><style id='zRSHA'><dir id='zRSHA'><q id='zRSHA'></q></dir></style></legend>
          <i id='zRSHA'><tr id='zRSHA'><dt id='zRSHA'><q id='zRSHA'><span id='zRSHA'><b id='zRSHA'><form id='zRSHA'><ins id='zRSHA'></ins><ul id='zRSHA'></ul><sub id='zRSHA'></sub></form><legend id='zRSHA'></legend><bdo id='zRSHA'><pre id='zRSHA'><center id='zRSHA'></center></pre></bdo></b><th id='zRSHA'></th></span></q></dt></tr></i><div id='zRSHA'><tfoot id='zRSHA'></tfoot><dl id='zRSHA'><fieldset id='zRSHA'></fieldset></dl></div>
            <bdo id='zRSHA'></bdo><ul id='zRSHA'></ul>

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

            • <tfoot id='zRSHA'></tfoot>

                1. 本文介绍了urllib3 connectionpool - 连接池已满,丢弃连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  看到了

                  urllib3.connectionpool WARNING - Connection pool is full, discarding connection
                  

                  意味着我实际上正在丢失数据(因为失去连接)

                  是否意味着连接被丢弃(因为池已满);但是,当连接池可用时,稍后会重新尝试相同的连接?

                  mean that I am effectively loosing data (because of lost connection)
                  OR
                  Does it mean that connection is dropped (because pool is full); however, the same connection will be re-tried later on when connection pool becomes available?

                  推荐答案

                  没有数据丢失!

                  连接被丢弃请求完成后(因为池已满,如前所述).这意味着这个特定的连接将来不会被重复使用.

                  The connection is being discarded after the request is completed (because the pool is full, as mentioned). This means that this particular connection is not going to be re-used in the future.

                  由于 urllib3 PoolManager 重用连接,它会限制每个主机保留的连接数,以避免累积太多未使用的套接字.PoolManager 可以配置为避免在池没有任何可用的空闲套接字时创建过多的套接字 PoolManager(..., block=True).

                  Because a urllib3 PoolManager reuses connections, it will limit how many connections are retained per hos to avoid accumulating too many unused sockets. The PoolManager can be configured to avoid creating excess sockets when the pool doesn't have any idle sockets available with PoolManager(..., block=True).

                  如果您依赖并发,最好将池的大小增加 (maxsize) 至少与数字一样大您正在使用的线程数,以便每个线程有效地获得自己的连接.

                  If you're relying on concurrency, it could be a good idea to increase the size of the pool (maxsize) to be at least as large as the number of threads you're using, so that each thread effectively gets its own connection.

                  更多详情:https://urllib3.readthedocs.io/en/latest/advanced-usage.html#customizing-pool-behavior

                  这篇关于urllib3 connectionpool - 连接池已满,丢弃连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Running .jl file from R or Python(从 R 或 Python 运行 .jl 文件)
                  Running Julia .jl file in python(在 python 中运行 Julia .jl 文件)
                  Using PIP in a Azure WebApp(在 Azure WebApp 中使用 PIP)
                  How to run python3.7 based flask web api on azure(如何在 azure 上运行基于 python3.7 的烧瓶 web api)
                  Azure Python Web App Internal Server Error(Azure Python Web 应用程序内部服务器错误)
                  Run python dlib library on azure app service(在 azure app 服务上运行 python dlib 库)
                2. <tfoot id='F3aLD'></tfoot>

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

                        <small id='F3aLD'></small><noframes id='F3aLD'>

                          <bdo id='F3aLD'></bdo><ul id='F3aLD'></ul>
                              <tbody id='F3aLD'></tbody>