I am setting up a connection to Rabbit using
(rmq/connect (assoc (:rabbit conf) :requested-heartbeat 3))
I have 3 subscribers to 3 channels, no producers. When I shutdown the rabbit server, nothing happens to my client. I would expect it to report missing heartbeat after 1.5 seconds and close the connection after 3 seconds. I have left the program running with rabbit down for quite a few minutes and nothing.
I'm using langohr 3.5.1
I have checked .getHeartbeat rabbit-conn
and it is correctly set to 3. I have also tried setting :connection-timeout 5
which I believe is 5ms. If I set that to 1 then my app fails to start up (timeout too small to make the initial connection), so I'm sure that setting is correct as well.
--
You received this message because you are subscribed to the Google Groups "clojure-rabbitmq" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure-rabbit...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "clojure-rabbitmq" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojure-rabbitmq/Z39EavO9Eas/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clojure-rabbit...@googlegroups.com.
product | Langohr | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
copyright | Copyright (C) 2011-2014 Michael S. Klishin, Alex Petrov | ||||||||||||
capabilities |
| ||||||||||||
information | See http://clojurerabbitmq.info/ | ||||||||||||
version | 3.0.x | ||||||||||||
platform | Clojure 1.8.0 on Java HotSpot(TM) 64-Bit Server VM 1.8.0_66 |
(doto cf
(.setClientProperties client-properties)
(.setUsername username)
(.setPassword password)
(.setVirtualHost vhost)
(.setHost host)
(.setPort final-port)
(.setRequestedHeartbeat requested-heartbeat)
(.setConnectionTimeout connection-timeout)
(.setRequestedChannelMax requested-channel-max))
--