Skip to content

Commit

Permalink
Send all GetOk frames in one TCP packet
Browse files Browse the repository at this point in the history
Looks like rabbitmq-c might not support that the GetOk and Header frame
comes in different TCP packets.
#162 (comment)
  • Loading branch information
carlhoerberg committed May 12, 2024
1 parent 7c89475 commit b6cf9c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/amqproxy/client.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b6cf9c7

Please sign in to comment.