[rabbitmq-discuss] SocketException when invoking model.BasicPublish

Michael Klishin mklishin at gopivotal.com
Thu Jun 19 03:04:43 BST 2014


On 19 June 2014 at 06:02:28, Scott McFadden (scott.kendall.mcfadden at gmail.com) wrote:
> > =ERROR REPORT==== 18-Jun-2014(http://airmail.calendar/2014-06-18%2012:00:00%20GMT+4)::20:17:08  
> ===
> AMQP connection <0.473.0> (running), channel 1 - error:
> {amqp_error,unexpected_frame,
> "expected content header for class 60, got non content header  
> frame instead",
> 'basic.publish'}

This looks like a well known issue you'll run into if you share a channel (IModel) between
threads, in particular threads that publish messages. This is a connection-level error,
so after getting it RabbitMQ closes the connection and your get socket errors on any subsequent
operation in the client.

Can the cross-thread sharing be the case? 
--  
MK  

Software Engineer, Pivotal/RabbitMQ


More information about the rabbitmq-discuss mailing list