[rabbitmq-discuss] loop_forever() from paho-mqtt python client prevents rabbitmq from stopping

Michael Klishin mklishin at gopivotal.com
Tue May 20 11:21:34 BST 2014


On 16 May 2014 at 11:35:01, Sok Ann Yap (sokann at gmail.com) wrote:
> > Steps to reproduce (on debian/ubuntu):
>  
> 1. Install rabbitmq-server version 3.3.1 following
> http://www.rabbitmq.com/install-debian.html
> 2. As root, run `rabbitmq-plugins enable rabbitmq_mqtt;
> /etc/init.d/rabbitmq-server restart` to enable the mqtt plugin  
> 3. As root, run `easy_install paho-mqtt` to install paho-mqtt  
> version 0.9
> 4. Copy the sample code from the "Getting Started" section of  
> https://pypi.python.org/pypi/paho-mqtt/0.9 as mqtt_test.py,  
> replace
> iot.eclipse.org(http://iot.eclipse.org) with localhost  
> 5. Run `python mqtt_test.py`, which will print "Connected with  
> result
> code 0" and then loop forever
> 6. As root, run `/etc/init.d/rabbitmq-server stop`
>  
> Attached is a sample log file. Step 5 happened on 09:33:28(http://airmail.calendar/2014-05-20%2009:33:28%20GMT+4).  
> Step 6
> happened on 09:33:39(http://airmail.calendar/2014-05-20%2009:33:39%20GMT+4).  
> On 09:39:42(http://airmail.calendar/2014-05-20%2009:39:42%20GMT+4),  
> I went to the console running the
> python script, and pressed Ctrl+C. The rabbitmq process was  
> able to
> stop following that.

I'm able to reproduce this. Investigating. 
--  
MK  

Software Engineer, Pivotal/RabbitMQ


More information about the rabbitmq-discuss mailing list