Commit Graph
84 Commits
Author SHA1 Message Date
Seth Michael LarsonandGitHub 33c1650b64 [7.x] Don't raise sniffing errors when retrying a request 2020-07-20 11:17:19 -05:00
Seth Michael LarsonandGitHub b13c7c6217 [7.x] Switch to long Apache-2.0 license header 2020-07-02 13:15:25 -05:00
Seth Michael LarsonandSeth Michael Larson 8ffae94912 [7.x] Add AsyncTransport 2020-05-21 11:36:21 -05:00
Seth Michael LarsonandSeth Michael Larson 8e1798cf31 Apply license header changes and API gen 2020-04-23 14:10:49 -05:00
Seth Michael LarsonandGitHub ae74e1d0e6 [7.x] Update Cloud ID default port, parsing of Cloud ID 2020-03-12 07:02:04 -05:00
Seth Michael LarsonandGitHub 9219c92779 [7.x] Add support for X-Opaque-Id 2020-03-11 16:33:15 -05:00
Seth Michael LarsonandSeth Michael Larson 210fae23d0 Run Black+Flake8 on project 2020-03-09 13:54:47 -05:00
Luca WintergerstandHonza Král 35afe32a6d fix typo in transport docs 2019-11-21 10:38:43 -06:00
epiphyteandHonza Král 71840d315a Support http.publish_host addresses 2019-10-30 18:40:06 +01:00
XiaodongandGitHub a2a6d529ea Fix docstring typos in /elasticsearch/transport.py 2019-09-19 11:13:02 +08:00
Philip KraussandHonza Král 28920b5d59 Ensure a custom User-Agent header is not overwritten (#992) 2019-08-12 14:20:10 +02:00
Philip KraussandNick Lang 100a2e623b Send User-Agent header identifying the Client (#991)
* send user agent header identifing the client

* no need to instantiate a new var

* add python version to user-agent
2019-08-08 08:50:11 -06:00
Honza Král 6dc6018a51 missing import 2019-07-28 00:02:31 +02:00
Honza Král 4b88e12a13 Do not sleep during the retry loop 2019-07-26 16:26:27 +02:00
Nick LangandGitHub 206f5e2754 Black (#948) 2019-05-10 09:16:33 -06:00
Nick LangandGitHub 7751fede5a add wait on delay (#794) 2018-05-18 14:30:31 -06:00
Nick LangandGitHub 1cae2b7eb0 Merge pull request #695 from fbacchella/explicitly_typo
Typo in a comment.
2018-01-10 13:59:18 -07:00
Andrew OdendaalandGitHub 90972e3983 Update transport.py 2018-01-05 13:50:52 +00:00
Andrew OdendaalandGitHub 3fd2c1a29d Issue: 696
`crate should be corrected to create.` as per https://github.com/elastic/elasticsearch-py/issues/696
2018-01-05 13:43:21 +00:00
Fabrice Bacchella b4a66c60a3 Typo in a comment. 2018-01-01 17:35:26 +01:00
Fabrice BacchellaandHonza Král 8c13060c87 ImproperlyConfigured is imported but not used in transport. (#693) 2018-01-01 15:54:39 +01:00
Fabrice BacchellaandHonza Král 920218db83 Transport.perform_request mutate headers. (#694) 2018-01-01 15:54:09 +01:00
Fabrice BacchellaandHonza Král 966f689545 A connection should be marked live with HEAD too. (#688) 2017-12-27 15:02:30 -05:00
Joshua Carp 3045516738 Clean up custom headers. 2017-10-04 16:07:55 -04:00
Joshua Carp 073db90ae8 Set application/x-ndjson content type on bulk requests.
Resolves #609
2017-10-04 16:07:55 -04:00
Tyler James HardenandHonza Král d6fb95353e Fixes non UTF-8 surrogateescapes (#612)
Fixes non UTF-8 surrogateescapes 

Surrogate escapes in Unicode (non UTF-8 encoding) will be properly escaped with backslashes when encountered, versus breaking the transport layer.
Fixes #611
2017-07-11 16:58:46 +02:00
Patryk KrawaczyńskiandHonza Král 5de989be07 Fix some spelling errors in docstrings from 2015. (#571) 2017-05-19 14:49:42 -07:00
Honza Král d336c571b9 [WIP] remove scheme checking 2017-05-15 22:01:54 +02:00
Yotam TanayandHonza Král a644af0e07 Fix error where address is null in _get_host_info (#506)
* Fix error where address is null in _get_host_info

* Bump CI
2017-01-03 15:12:15 +01:00
Honza Král fe53ab588e Fix sniffing for 5.0
Fixes #477
2016-12-06 12:17:57 +01:00
Honza Král f8b090c7cc retry on 502, 503 and 504 responses from ES 2016-04-26 20:08:06 +02:00
Honza Král c51b8fdeef Refactored sniff_hosts for easier implementation of AsyncTransport 2016-03-14 22:23:04 +01:00
Honza Král 64ff08b2ae Move HEAD handling to Transport 2016-03-10 19:06:20 +01:00
Honza Král 38bb0aafbd Have transport.perform_request only return data 2016-03-10 18:59:31 +01:00
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 a63bad4e1d Provide more documentation on _get_sniff_data 2015-12-07 18:41:13 +01:00
Honza Král a5aa160b81 Factored out the ES communication when sniffing
This should help with #312
2015-12-07 18:26:00 +01:00
Honza Král fb8eb4e385 Respect publish host when present on a node.
Closes #251. Thanks danpilch and bowensong for the patch!
2015-12-01 03:40:40 +01:00
Honza Král 1b60d9bf84 iElasticsearch 2.0 exposes just host:port in nodes.info
Fixes #293
2015-11-02 14:26:28 +01:00
Honza Král 10c36ad530 Make search_exists consistent with other _exists APIs
Fixes #230 Thanks ncrocfer for the report!
2015-05-18 15:50:35 +02:00
Steven Moy 7a674dbb0b Fixed Issue 180 Pass connection pool and seed_connections as two
separate arguments
2015-01-08 15:43:14 -08:00
Honza Král 0fd051922b Use chain instead of concatenation.
Fixes #180
2015-01-09 00:16:34 +01:00
Honza Král d3e745ab77 Make initial sniff (sniff_on_start) ignore sniff_timeout
This is due to issue mentioned in #167 as part of discussion
2015-01-04 19:44:21 +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 265d00d5d6 Retry on some HTTP statuses and touching up the retry logic 2014-11-24 17:08:23 +01:00
Honza Král bf74f7244e make host url parsing more resilient
Reject invalid combinations of url scheme and connection_class
2014-11-14 15:55:32 +01:00
Honza Král d9296e85b9 Timeout should not trigger a retry by default 2014-11-10 23:52:26 +01:00
Honza Král 18d6b41e82 Allow body to be passed as bytes in python 3.4
Fixes #113, thanks leplatrem for the report!
2014-08-23 15:25:44 -07:00
Honza Král 8966902e40 Filter out master-only nodes when sniffing
Fixes #106, thanks jolynch!
2014-07-31 00:33:26 +02:00