Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to increase the max in IdGenerator from client? #123

Open
Shraddha-gami-source opened this issue Jan 26, 2021 · 1 comment
Open

How to increase the max in IdGenerator from client? #123

Shraddha-gami-source opened this issue Jan 26, 2021 · 1 comment

Comments

@Shraddha-gami-source
Copy link

On sending messages/ack it is showing QoS query is full
Is there any way to increase the max in IdGenerator from a client itself?

Attaching the stack trace for more info.
File "/usr/local/lib/python3.7/dist-packages/gmqtt/client.py", line 225, in subscribe
return self._connection.subscribe(subscriptions, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/gmqtt/mqtt/connection.py", line 71, in subscribe
return self._protocol.send_subscribe_packet(subscription, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/gmqtt/mqtt/protocol.py", line 94, in send_subscribe_packet
mid, pkg = package.SubscribePacket.build_package(subscriptions, self, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/gmqtt/mqtt/package.py", line 158, in build_package
local_mid = cls.id_generator.next_id()
File "/usr/local/lib/python3.7/dist-packages/gmqtt/mqtt/utils.py", line 55, in next_id
id = self._mid_generate()
File "/usr/local/lib/python3.7/dist-packages/gmqtt/mqtt/utils.py", line 31, in _mid_generate
raise OverflowError("All ids has already used. May be your QoS query is full.")

@Mixser
Copy link
Contributor

Mixser commented Jan 27, 2021

Hi @Shraddha-gami-source

We can't increase a number of ids, because this is a limitation of MQTT protocol. Why do you have so many pending messages?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants