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

Stack Overflow on v5 subscribe() #907

Open
aaron-613 opened this issue Dec 4, 2021 · 3 comments
Open

Stack Overflow on v5 subscribe() #907

aaron-613 opened this issue Dec 4, 2021 · 3 comments

Comments

@aaron-613
Copy link

Hi there,

Just trying out the v5 client for the first time. Ran into a stack overflow bug almost immediately. It's on line 525 of MqttClient:

	public IMqttToken subscribe(String[] topicFilters, int[] qos, IMqttMessageListener[] messageListeners)
			throws MqttException {
		return this.subscribe(topicFilters, qos, messageListeners);
	}

Thanks.

@JanEbbinge
Copy link

I think this caused because this function calls itself. And therefor gets in an infinite recursive loop.
I worked around it, by using the subscribe function on line 528.

@JanEbbinge
Copy link

Looks like a fix is already in pull request.
#899

@shurkanTwo
Copy link

When will this bug going to be fixed? We are facing this issue and therefore can not use the paho mqtt v5 client.

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

3 participants