You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fs2-rabbit can change its own prefetchCount parameter of BasicQos to be a Short instead of an Int. Then invalid values simply can't be passed. Comments can direct the user about what to do It's actually interpreted as an unsigned short, so we don't have an out of the box type for it.
(binary compatible) fs2-rabbit can log an error when there's an attempt to basicConsume with prefetchCount > (2^16-1). We can also optionally "round" the requested count down to exactly (2^16-1)
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The AMQP spec says that
prefetchCount
is ashort
(16-bit) value. Despite this, the java amqp-client accents anint
parameter. The int then has its MSB stripped off, and the remainder is reinterpreted as a short.For example, if you supply a prefetch of
1_000_000
, that gets interpreted as a prefetchCount of16960
I have two proposals:
fs2-rabbit can change its ownIt's actually interpreted as an unsigned short, so we don't have an out of the box type for it.prefetchCount
parameter ofBasicQos
to be aShort
instead of anInt
. Then invalid values simply can't be passed. Comments can direct the user about what to dobasicConsume
withprefetchCount > (2^16-1)
. We can also optionally "round" the requested count down to exactly (2^16-1)The text was updated successfully, but these errors were encountered: