Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-436

PyMongo should support capping the number of sockets created

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Minor Change

      Users reasonably expect max_pool_size to enforce the maximum number of concurrent connections. In fact, max_pool_size is the max number of idle sockets that threads / greenlets can return to the pool before the pool starts discarding returned sockets. PyMongo does not track the number of concurrent connections in use, nor enforce a limit.

      Follow the lead of other drivers (Java?) and enforce a maximum number of concurrent connections with a semaphore. Leave unbounded by default until we're ready to make a breaking change. Consider renaming max_pool_size to something more descriptive.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: