ebin123456 / py-amqplib

Automatically exported from code.google.com/p/py-amqplib
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Heartbeats #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It looks like the client is sending a the broker a heartbeat value, but,
being single threaded, I'm presuming that it's not maintaining actual
heartbeats.

What's the status of this feature? Should heartbeats always be 0?

As a side question, in the absence of heartbeats, what's a good/cheap way
to actively test the broker connection to confirm we can still talk to the
broker? E.g. as a hack (or maybe good design, shrug :) I'm declaring a
non-durable queue whose sole purpose is to let me communicate with the broker.

Original issue reported on code.google.com by g%rre.tt@gtempaccount.com on 1 Sep 2009 at 1:25

GoogleCodeExporter commented 9 years ago
Btw, this is not really a defect -- more of a question.

Original comment by g%rre.tt@gtempaccount.com on 1 Sep 2009 at 1:26

GoogleCodeExporter commented 9 years ago
Heartbeats are a feature that was more or less ignored so far.  Just did enough 
with
it to satisfy the required parameters for connection negotiation.  

I can see where it'd be useful for detecting lost connections quicker, would 
probably
have to be something worked into the threaded mode found in the development 
version.
 I'll relabel this as a request for enhancement instead of a defect.

Original comment by barry.pe...@gmail.com on 13 Sep 2009 at 4:00

GoogleCodeExporter commented 9 years ago
Hi 
I need to use heartbeats feature but I think is not implemented yet.
In the code in the connection.py file I can find heartbeat values but it's 
hardcoded the 0 value that means don't use heartbeat.
To enable this feature I can change the code to properly set heartbeat value or 
I need to something else?
Best regards
--
Andrea

Original comment by andrea.rosa on 27 Oct 2011 at 1:11

GoogleCodeExporter commented 9 years ago
Sorry, the code to support heartbeats just isn't there, so changing the value 
from 0 to 1 won't do anything for you.

If you really need that feature, you may need to look at another library that 
is more asychronous at its core, perhaps Pika?

Original comment by barry.pe...@gmail.com on 27 Oct 2011 at 1:38

GoogleCodeExporter commented 9 years ago
OK Barry thanks for your reply. 
Ok It's more likely that I am moving to Pika.
Thanks

Original comment by andrea.rosa on 27 Oct 2011 at 2:35