Open luckyswede opened 13 years ago
@luckyswede We have just hit upon this issue with Kombu 4.4.0 and amqp 2.2.2. Can you please explain what solved your issue? It would be hugely helpful.
Sorry, I have no idea. It's been too long..
@andrask, I also run similar issue in the past where message will get lost after the rabbitmq is restart. I was able to get away by setting confirm_publish = True
when initializing the amqp.Connection class. Hope this will help you.
@tilan7663 It did help! Thanks a lot!
@andrask @tilan7663 Could any of you add some documentation on how to resolve this issue and the different tradeoffs?
Hello! I'm using kombu 1.2.1 and amqplib1.0 and python 2.6.1 and rabbitmq 2.5.1.
After a restart of rabbitmq (single node setup) the first call to producer.publish silently returns without transmitting the message. On the second call, I get a "broken pipe" exception, and I recreate the connection and everything works fine.
Why don't I get a broken pipe on the first call? Is this a problem with amqlib or with kombu? I've tried to use the ensure* methods on connection, but no luck. It seems that kombu/amqlib don't understand that the socket is dead.
Thanks / J