pika/pika — Issue #115: prefetch count is uint, could be bigger ?
Author: isbaran
Created: 2011-12-28 15:00:12+00:00
State: open

Hello,

prefetch count is defined as uint:

pieces.append(struct.pack('>H', self.prefetch_count))
struct.error: 'H' format requires 0 <= number <= 65535

so if you set channel.basic_qos(prefetch_count > 65535) a struct.error is raised,

i dont know if using a value higher than an uint is required in some situations for prefetch count, but i guess it should either not set it, or catch the exception

Best regards