module

LavinMQ::AMQP::ReplyText

A reply_text is sent as an AMQP short string, so it can never exceed 255 bytes. It embeds client-supplied names and exception messages, so it is capped here rather than trusting every call site to be short. Encoding an over-long short string raises part-way through the frame, leaving a truncated frame on the socket and breaking the connection.

Constants

MAX_BYTESIZE = 255

Class methods

build(code, message) : String
Source