gmr / rabbitpy

A pure python, thread-safe, minimalistic and pythonic RabbitMQ client library
http://rabbitpy.readthedocs.org
BSD 3-Clause "New" or "Revised" License
242 stars 58 forks source link

Fix _connect() hang on Linux and Python 2.7 #87

Closed vmarkovtsev closed 8 years ago

vmarkovtsev commented 8 years ago

As tested on 3 PC (Ubuntu 14.04, 15.04, 15.10 x86_64) in virtualenv, Python 2.7.10, getdefaultlocale() blocks forever in a thread different from main. Let's cache it since it is unlikely to change at runtime.

UPDATE: tested on MacOSX, same hanging.