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

Message over MQTT received twice and three times if its payload exceeds around 200MB #13

Closed
jpwsutton opened this issue Feb 4, 2016 · 0 comments

Comments

@jpwsutton
Copy link
Member

migrated from Bugzilla #436784
status RESOLVED severity normal in component MQTT-Java for 0.9
Reported in version 1.0 on platform Macintosh
Assigned to: Bin Zhang

On 2014-06-06 04:59:29 -0400, H. A. Samad wrote:

The client somehow happens to receive a message more than one time, if its payload exceeds 200MB (this is not an exact figure, since I tested by gradually increasing the payload by 5MB message by message).

My broker is Mosquitto. I tried all QOS configurations, Still the same.

Remarkably, this does not happen when working with the Paho Python library, using the same setup. So my environment (network, broker, publishing client, etc.) should be fine.

On 2014-06-09 04:21:18 -0400, Benjamin Cabé wrote:

You may want to share progress with this guy on SO :) http://stackoverflow.com/questions/24077682/message-over-mqtt-received-twice-and-three-times-if-its-payload-exceeds-200mb

On 2014-06-09 04:24:38 -0400, H. A. Samad wrote:

(In reply to Benjamin Cabé from comment # 1)

You may want to share progress with this guy on SO :)
http://stackoverflow.com/questions/24077682/message-over-mqtt-received-twice-
and-three-times-if-its-payload-exceeds-200mb

That's my question already ;)

On 2014-06-09 04:29:48 -0400, Benjamin Cabé wrote:

Ah lol. Sorry :) I misread and thought Al did report the bug!

On 2014-06-16 11:45:44 -0400, Bin Zhang wrote:

What's your paho client version, and any test case to reproduce this issue?

On 2014-07-09 11:46:17 -0400, H. A. Samad wrote:

Paho 1.0
I tried several code snippets from the internet, which all are nothing but a "hello world" Paho examples... So pretty simple stuff.

On 2014-08-20 05:01:09 -0400, Bin Zhang wrote:

I cannot reproduce this issue.

Tried many cases with paho 1.0 & latest version with mosquitto version 1.3.1

  1. message size <200MB, =200MB and >200MB and QoS=0,1,2
  2. client1 sub and client2 pub.
  3. client1 sub and pub.
    All cannot reproduce the issue(the message was received exactly once).

Please provide a reproducible test code if you are still seeing the issue.

On 2015-12-30 01:49:59 -0500, Jayanth Nanjundaiah wrote:

Hi,

I have faced similar kind of issue but in a different way.

Step 1 : Connected to mqtt broker and subscribes to a topic.

Step 2 : If there is a message received from the topic, the message will be received once.

Step 3 : When it gets disconnected and is connected again. If a message is received it will be received twice(I guess since it is the second time it is getting connected).

Step 4: Step 3 : When it gets disconnected again and is connected again. If a message is received it will be received thrice(I guess since it is the third time it is getting connected).

Step 5 : The continues as many times the connection is broken and connected.

Please help me out with this one.

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

1 participant