pika/pika — Issue #112: 505 UNEXPECTED_FRAME when publishing in a consume handler
Author: blalor
Created: 2011-12-11 13:04:37+00:00
State: open

I'm trying to implement a consumer that also publishes messages using `pika` 0.9.5 running against RabbitMQ 2.7.0. I've created some [sample code][1] that attempts to put a more user-friendly layer on top of the basic event-driven `SelectConnection`, but it's still very simple. :-) I'm doing the following:

* connect to the server
* create a channel for subscribing to `Exchange A`
* create a channel for subscribing to `Exchange B`
* create a channel for publishing received messages to `Exchange C`

This will start and run for a short period of time, but eventually all three channels will close abruptly with

[505] UNEXPECTED_FRAME - expected content header for class 60, got non content header frame instead

Is this something wrong with my code, or a bug in pika?

[1]: https://gist.github.com/7f9ebb6455d2677a1b66