Skip to content

Make reconnecting to a lost RabbitMQ work.#347

Merged
JamieCressey merged 2 commits into
python-beaver:masterfrom
timstoop:connection_error_issue_346
Dec 3, 2015
Merged

Make reconnecting to a lost RabbitMQ work.#347
JamieCressey merged 2 commits into
python-beaver:masterfrom
timstoop:connection_error_issue_346

Conversation

@timstoop
Copy link
Copy Markdown
Contributor

This should solve issue #346 (which I created myself). I'm not sure why nobody else had this issue, maybe they do not upgrade their RabbitMQ very often! Or it might be because I'm using pika 0.10.0. In any case, this solves the issue. Should I increase the requirement for pika to >=0.10.0 as well?

Comment thread beaver/transports/rabbitmq_transport.py Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably worth supporting both old and new versions of pika. Pretty easy to check which version in the init of the transport and then just use that one here.

@timstoop
Copy link
Copy Markdown
Contributor Author

Here I got to admit that I'm not an actual Python dev, just a dabbler in the art. I have no idea what the best way of doing that would be, but I think I have an alternative... Will push in a second.

@timstoop
Copy link
Copy Markdown
Contributor Author

I don't understand why the kafka tests fail due to my change :/

@timstoop
Copy link
Copy Markdown
Contributor Author

Actually, I get the same errors when running './setup.py test' on the current master...

JamieCressey added a commit that referenced this pull request Dec 3, 2015
Make reconnecting to a lost RabbitMQ work.
@JamieCressey JamieCressey merged commit 7caffae into python-beaver:master Dec 3, 2015
@timstoop timstoop deleted the connection_error_issue_346 branch December 9, 2015 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants