Ruby Stomp Gem #publish 似乎将消息截断为 256 个字符?

Ruby Stomp Gem #publish seems to truncate messages to 256 characters?

我不确定我做错了什么,但是

client = Stomp::Client.new('user', 'pass', activemq_host, port)
client.publish('com.real.queue', some_really_large_object.to_json, { :persistent => true })

导致消息在 256 个字符后被截断...我无法找到任何好的文档来解释此限制的来源(似乎不是 stomp 中的配置选项 ruby gem),并且显然其他使用不同客户端的人可以 post 进入队列并且看不到消息被截断...

有人知道为什么会这样吗?

显然对 headers 使用以下内容解决了问题:

{ 'persistent' => true,                                                                                                                              
  'suppress_content_length' => true,                                                                                                                                
   'content-type' => 'application/json' }