elasticsearch/elasticsearch-py — pull request #24 by rboulton (2013-11-19 16:59:01+00:00)
Title: Allow the maxsize parameter to be passed to the urllib3 connection pool

When an Elasticsearch client object is being shared by multiple threads, it is possible for the urllib3 connection pools managing each host connection to be asked for more than 1 concurrent connection. Currently, elasticsearch-py doesn't permit the UrllibConnectionPool constructor's maxsize parameter to be changed from the default value of 1. This results in connections frequently being opened and closed under concurrent load.

This PR simply exposes the maxsize parameter, so that it can be passed to the Elasticsearch client constructor, such that users can set the per-host pool size.