From 1c279d5aad60f71cf1213611f6f960dbed22e717 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Tue, 19 Nov 2013 22:31:25 +0100 Subject: [PATCH] By default allow 10 connections to be held to the server --- elasticsearch/connection/http_urllib3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elasticsearch/connection/http_urllib3.py b/elasticsearch/connection/http_urllib3.py index cd265dec..1bed8205 100644 --- a/elasticsearch/connection/http_urllib3.py +++ b/elasticsearch/connection/http_urllib3.py @@ -16,9 +16,9 @@ class Urllib3HttpConnection(Connection): string or a tuple :arg use_ssl: use ssl for the connection if `True` :arg maxsize: the maximum number of connections which will be kept open to - this host. Useful to set this higher than 1 for multithreaded situations. + this host. """ - def __init__(self, host='localhost', port=9200, http_auth=None, use_ssl=False, maxsize=1, **kwargs): + def __init__(self, host='localhost', port=9200, http_auth=None, use_ssl=False, maxsize=10, **kwargs): super(Urllib3HttpConnection, self).__init__(host=host, port=port, **kwargs) headers = {} if http_auth is not None: