Andrew Snare and Honza Král
4d37a54c95
Use simplejson if present instead of the stdlib json module.
...
The simplejson parser drop-in compatible with the builtin python JSON
parser, but much faster. In particular, this makes operations like
reindexing quicker.
2014-06-25 10:21:36 +02:00
Honza Král
f10d7f2da2
Body is always sent as utf-8 bytes, reflect it in tests
...
Thanks johbo for the report!
2014-05-09 18:11:50 +02:00
Honza Král
49b7a1aca9
Make sure to include Content-Length header in calls with body
...
Fixes #70
2014-03-31 16:41:08 -07:00
Honza Král
b78bce79df
Make sure urllib3 doesn't do retries.
2014-03-01 01:25:25 +01:00
Honza Král
a54d7035bb
Compatibility with python 3.2
...
Now all the python 2/3 compatibility code is in elasticsearch.compat
Fixes #52
2014-02-21 16:59:13 +01:00
Honza Král
3e4ece48bd
Even in thrift empty response should be '' and not None
2014-02-11 01:00:01 +01:00
Honza Král
59e76733de
Lowercase all thrift headers for compatibility with http
2014-02-11 00:49:30 +01:00
Honza Král
c2611e92eb
Set timeout properly for Requests and Thrift connections
2014-01-23 08:48:42 +01:00
Honza Král
c82219ea0a
Make sure we clean up correctly after failed thrift connection
2014-01-18 21:33:04 +01:00
Honza Král
2a76e66dea
Thrift is not lazy during opening connection
...
we need to look out for exceptions even when requesting one
2014-01-18 21:29:26 +01:00
Honza Král
e2ab7ea80d
Adding a third return value from connection.perform_request - headers
...
This will be used to implement deserializing based on mimetype
2013-12-13 19:36:21 +01:00
Honza Král
be9acfad90
Make sure we handle quotes correctly in the trace logger
2013-12-11 14:41:42 +01:00
Honza Král
19f9eaab95
Make sure bulk requests are logged correctly
2013-12-03 02:04:11 +01:00
Honza Král
c5c98dcaac
Add logging of body as INFO on connection error
2013-12-03 01:55:32 +01:00
Honza Král
1c279d5aad
By default allow 10 connections to be held to the server
2013-11-19 22:31:25 +01:00
Richard Boulton
e8439372d6
Allow the maxsize parameter to be passed to the urllib3 connection pool
2013-11-19 16:45:39 +00:00
Honza Král
b8b9f67092
Logging fixes
2013-11-03 22:39:03 +01:00
Honza Kral
e6e1fd060e
Make requests an optional dependency
2013-10-14 23:33:16 +02:00
Honza Kral
08a38844be
Json does recognize ints
2013-10-10 13:56:56 +02:00
Honza Kral
8568388f29
cluster.health has a status key that should not be treated as http status
2013-10-10 13:20:00 +02:00
Honza Kral
a2b89e0b84
Moved RequestsHttpConnection to it's own module
2013-10-04 15:47:56 +02:00
Honza Kral
45403c9f2d
Moved Urllib3HttpConnection to it's own module
2013-10-04 15:46:41 +02:00
Honza Kral
92c7dde5e0
Removing redundant code
2013-10-02 01:04:50 +02:00
Honza Kral
9baa8fb309
Tiny cleanup
2013-10-02 00:54:05 +02:00
Honza Kral
5fccd1e793
Allow lists for http_auth in RequestsHttpConnection
...
thanks nkvoll!
2013-10-02 00:42:38 +02:00
Honza Kral
b0587071b6
Circumvent prepared requests from RequestsHttpConnection
...
this is because sesion.send(prepared_request) doesn't pass through auth
info. Thanks nkvoll!
Fixes #8
2013-10-02 00:39:19 +02:00
Honza Kral
672fdf7d5f
Make ignore a global parameter
2013-09-25 23:09:50 +02:00
Honza Kral
33b05bdc62
Thrift SSL support
2013-09-25 21:31:10 +02:00
Honza Kral
490fd237ee
rename use_https to use_ssl to make it forwards copatible with thrift
2013-09-25 21:07:29 +02:00
Honza Kral
b724288d76
Https support for the http-based transports.
...
Thanks, nkvoll!
2013-09-24 23:07:14 +02:00
Honza Kral
7a440fda4a
Support for HTTP auth. Thanks, nkvoll!
2013-09-24 22:55:04 +02:00
Honza Kral
6d35a78751
wrong __init__ signature for connections
2013-09-24 18:38:18 +02:00
Honza Kral
ec038c4e9c
More doc fixes
2013-09-24 16:58:37 +02:00
Honza Kral
38ba61d511
Fix memcached tests for py3
2013-08-25 18:01:45 +02:00
Honza Kral
39bcd81957
Minor fixes
2013-08-25 17:58:30 +02:00
Honza Kral
667160e9dc
Added PoolingConnection for non thread-safe connection classes
2013-08-25 17:00:46 +02:00
Honza Kral
e91ed68bd0
Split individual connection classes
2013-08-25 16:39:56 +02:00
Honza Kral
95c33871ef
Make connections a package
2013-08-25 16:32:20 +02:00