Honza Král
aa2d4f079c
Adding tests for advanced auth options for requests
2015-03-26 14:17:10 +01:00
Georges Toth
fc98b5d352
Modify test for http_auth to allow for passing custom authentication methods as well
2015-03-26 12:39:09 +01:00
Russell Savage
4c24468168
updating doc links to elastic.co
...
reverting bucket link to elasticsearch.org
updating test cases to use elastic.co
updating pylibmc version
2015-03-23 15:56:32 -07:00
Sven Wästlund
3616f7208a
socket.error is now caught in perform_request aswell.
...
Fixes #205
2015-03-11 16:17:10 +01:00
Honza Král
b92d591026
Make method utf-8 for urllib3
...
fixes #201
2015-02-26 14:14:33 -08:00
Honza Král
271fc4d232
Warn when people using insecure options.
2015-01-29 23:46:01 +01:00
Honza Král
72d24906d7
Clarifying connection parameters.
...
Fixes #171 Thanks DavidAwad!
2014-12-30 17:21:22 +01:00
j0hnsmith and Honza Král
482f166c1a
set propagate=False on elasticsearch.trace only if logger not already configured
2014-12-09 15:31:19 +01:00
Honza Král
03a817690d
Added support for client SSL certificates for https
...
Thanks almer-fuel for the inital patch!
2014-11-14 15:31:49 +01:00
Honza Král
fedcfafe7e
Proper SSL implementation, including optional certificate verification
2014-11-11 03:20:16 +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
ecfeb93a6f
Introducing a ConnectionTimeout as a subclass of ConnectionError
...
This is to enable #128 to work
2014-10-03 18:49:07 +02:00
Honza Král
f93a79aedd
Add explanation of url encoding
2014-10-03 17:32:11 +02:00
Honza Král
5fec49e261
Make sure url is a string, not unicode in python 2
...
Fixes #133 , thanks sheIIdon!
2014-10-01 17:31:38 +02:00
Honza Král
20aa35d791
Urllib3 will fill in the content-length automatically
2014-10-01 16:42:04 +02:00
Honza Král
40f7fc5a01
Log failed attempts at closing the failed thrift connections
2014-09-27 17:34:00 +02:00
Michael Schier
76995a6582
ignore exceptions when trying to close transport socket
2014-09-23 23:38:58 +12:00
Michael Schier
2a1aac8c3b
close thrift connection upon exception
2014-09-23 01:40:04 +12:00
Michael Schier
8a4c990065
addressed maintainer comments
2014-09-23 01:13:04 +12:00
Michael Schier
c4bbe7382b
discard dodgy thrift connections that went into a bad state, made PoolingConnection thread-safe
2014-09-19 01:45:03 +12:00
Honza Král
cb68308abf
Body in the logs should be debug-level
...
Fixes #119 , thanks traxair!
2014-09-10 16:24:44 +02:00
Honza Král
44060a48a0
Catch socket.timeout in ThriftConnection
...
Fixes #121 , thanks traxair!
2014-09-08 12:08:45 +02:00
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