elasticsearch/elasticsearch-py — pull request #127 by schiermike (2014-09-22 02:20:13+00:00)
Title: discard dodgy thrift connections, thread-safe pooling

I had issues using elasticsearch-py and ThriftConnection in connection with threads as well as greenlets.
At some point, thrift connections seem to go into a weird state, and you end up getting responses for requests sent from another thread and vice versa.