Alex Kahan and Honza Král
a2e9f0c807
Closes #1044 . Fixing bug with mark_dead in connection pool
2019-10-29 17:01:47 +01:00
Nick Lang and GitHub
206f5e2754
Black ( #948 )
2019-05-10 09:16:33 -06:00
Patryk Krawaczyński and Honza Král
5de989be07
Fix some spelling errors in docstrings from 2015. ( #571 )
2017-05-19 14:49:42 -07:00
Husain Zafar and Honza Král
ed5a1cce8e
This commit modifies the elasticsearch/connection_pool.py file to solve the list index out of range error. ( #539 )
...
Fixes #371
2017-02-19 16:04:32 +05:30
Will McGinnis
b0d3de0ada
requested changes.
2016-03-03 19:50:17 -05:00
Will McGinnis
8a18e4c743
added close methods to everything below transport
2016-03-03 19:31:31 -05:00
Honza Král
4de7835d32
Use the copy we made for this thread, otherwise not thread safe
...
Fixes #371
2016-03-03 17:47:04 +01:00
Marc Abramowitz and Honza Král
0246c5bbda
Remove extra spaces from exception message
...
Without this change, it prints with extra spaces -- e.g.:
E elasticsearch.exceptions.ImproperlyConfigured: No defined connections, you need to specify at least one host.
2015-01-27 16:51:39 +01:00
Honza Král
836c6d1933
Introducing DummyConnectionPool for when only 1 connection defined
2014-12-20 00:35:24 +01:00
Honza Král
82a32540d7
Fix race condition in ConnectionPool
...
Fixes #158
2014-12-20 00:34:42 +01:00
Honza Král
0f0630d8d7
Make sure we always have connections defined
2014-12-08 14:32:52 +01:00
Honza Král
b8b9f67092
Logging fixes
2013-11-03 22:39:03 +01:00
Honza Kral
4477895b42
Connection Layer docs
2013-09-24 15:49:38 +02:00
Honza Kral
30bbb2a0cd
Cut off the timeout increases after 5 failures by default
...
Contrary to popular beliefs there are Python processes in the wild that
run for weeks and increasing the timeout without bound is not useful for
those.
2013-06-14 16:59:36 +02:00
Honza Kral
c686cd2be3
Have error counting contained within ConnectionPool and don't leak out to Transport
...
Thanks @bleskes for the inspiration!
2013-06-14 16:46:58 +02:00
Honza Kral
dd19553ba7
Have sniff_hosts reuse existing connection to not waste open sockets
2013-05-24 01:29:31 +02:00
Honza Kral
1e81d09b14
Docstrings for connection_pool
2013-05-22 20:30:44 +02:00
Honza Kral
9e6714e2fa
Add a RandomSelector
2013-05-22 20:30:38 +02:00
Honza Kral
5af5e36c93
In case of race condition, don't block on resurrecting
2013-05-13 17:40:22 +02:00
Honza Kral
603ec53387
TODO is DONE
2013-05-05 04:51:32 +02:00
Honza Kral
379d443cfa
If a connection fails Nth time in a row put it on timeout for 2**(N-1) * default_timeout
2013-05-05 01:00:10 +02:00
Honza Kral
b4ba7433bd
Make sure dead connections are handled in a thread-safe manner
2013-05-05 00:36:39 +02:00
Honza Kral
8cd053799e
When resurrect happens it shouldn't return the risen connection, just return it to pool
2013-05-03 03:19:49 +02:00
Honza Kral
e3c76ecf01
ConnetionPool to hold all the connections
...
It provides load balancing and keeps track of the status of individual
connections (dead/alive) and penalizes dead connections with a timeout.
2013-05-02 17:54:26 +02:00