LernaeanHydra / pyactivemq

Automatically exported from code.google.com/p/pyactivemq
Apache License 2.0
1 stars 0 forks source link

Make pyactivemq work with signals #23

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
From a user:

"""
I'm using the pyactivemq bindings and it seems that it's the best way to 
get interface to ActiveMQ for Python. They work well, except that while a 
consumer is doing 'receive' no system signals are received (CTRL+C doesn't 
work, other signals too). This is important for me because I use signals 
for communication between processes. Do you know if it's a limitation of 
ActiveMQ-CPP? Or something can be done in pyactivemq?
"""

Maybe NumPy can help:

http://projects.scipy.org/pipermail/numpy-discussion/2006-
August/010176.html

Original issue reported on code.google.com by fullung@gmail.com on 19 Sep 2008 at 2:37

GoogleCodeExporter commented 8 years ago
A possible workaround in some cases is to use receive with a timeout parameter 
inside 
of a loop.

Original comment by fullung@gmail.com on 19 Sep 2008 at 11:08

GoogleCodeExporter commented 8 years ago
From the user:

"""
I've tested it and I thought that signals sent while doing receive() didn't go 
to the 
process, but I've tested it once again and the case it that signals are 
received, but 
n signals (n > 1) are collapsed to one. This is not a problem for me. So, it 
seems 
that the whole issue is more an enhancement than a "bug". Thanks :).
"""

Original comment by fullung@gmail.com on 21 Sep 2008 at 8:26