From b6cf9c7ac7219d0d7c3489b1ab749aff4f2d6c91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20H=C3=B6rberg?= Date: Sun, 12 May 2024 09:22:52 +0200 Subject: [PATCH] Send all GetOk frames in one TCP packet Looks like rabbitmq-c might not support that the GetOk and Header frame comes in different TCP packets. https://github.com/cloudamqp/amqproxy/issues/162#issuecomment-2105735569 --- src/amqproxy/client.cr | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amqproxy/client.cr b/src/amqproxy/client.cr index 655b2c9..e2d5e49 100644 --- a/src/amqproxy/client.cr +++ b/src/amqproxy/client.cr @@ -173,6 +173,7 @@ module AMQProxy private def expect_more_publish_frames?(frame) : Bool case frame when AMQ::Protocol::Frame::Basic::Publish then true + when AMQ::Protocol::Frame::Basic::GetOk then true when AMQ::Protocol::Frame::Header then frame.body_size != 0 when AMQ::Protocol::Frame::Body then frame.bytesize == @frame_max else false