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
When connecting to a server without a clean session, the application does not seem to connect properly.
On the server side, I see:
1571925100: New connection from 192.168.48.135 on port 443.
1571925100: New client connected from 192.168.48.135 as session-f931762b-97c6-49b6-a18a-e2daaf62dc57 (c0, k100, u'stresstest').
1571925102: Client session-f931762b-97c6-49b6-a18a-e2daaf62dc57 disconnected.
--
1571925130: New connection from 192.168.48.135 on port 443.
1571925130: Client session-f931762b-97c6-49b6-a18a-e2daaf62dc57 disconnected.
1571925130: New client connected from 192.168.48.135 as session-f931762b-97c6-49b6-a18a-e2daaf62dc57 (c0, k100, u'stresstest').
As you can see, the server first logs a disconnect event, and then a connect event. But it also earlier logged a disconnect event for that same session ID.
The client will PINGREQ and PINGRESP properly, but not receive any messages. Possibly because the subscriptions aren't restored?
I can't really understand it. I've attached a test case scenario: Stresstest.hs.gz. I've compiled it by adding this to the cabal file:
I'm running mosquitto 1.4.15, there is no mention in the changelog of any bug fixes related to clean session since that version. And I'm having a hard time imagining that this would be a bug in the C library. But I can't be sure.
Any suggestions on why this might be?
The text was updated successfully, but these errors were encountered:
When connecting to a server without a clean session, the application does not seem to connect properly.
On the server side, I see:
As you can see, the server first logs a disconnect event, and then a connect event. But it also earlier logged a disconnect event for that same session ID.
The client will PINGREQ and PINGRESP properly, but not receive any messages. Possibly because the subscriptions aren't restored?
I can't really understand it. I've attached a test case scenario: Stresstest.hs.gz. I've compiled it by adding this to the cabal file:
This scenario creates a clean session, then spams a bunch of messages to this session from a different client, and then reconnects with the session.
https://github.com/dustin/mqtt-hs does not have the same problem, so the bug is probably not in the server: mqtt-hs-stresstest.gz
I'm running mosquitto 1.4.15, there is no mention in the changelog of any bug fixes related to clean session since that version. And I'm having a hard time imagining that this would be a bug in the C library. But I can't be sure.
Any suggestions on why this might be?
The text was updated successfully, but these errors were encountered: