Hi Ben,
    Thanks for your inputs. I explicitly set 'persistence' to true
      and it does seem to work fine.
    So, my questions are:
    1> Should this configuration setting be done only when clean
      start is set to false from the client?
    2> How is the subscription remembered in case of v3.1.1 when
      persistence is not set? 
    
    According to the documentation -
      https://mosquitto.org/man/mosquitto-conf-5.html, the default value
      is 'false', which implies data will be stored in-memory..
      Shouldn't this work for both protocols? 
    
    Thanks,
    Bindu
    
On 20/04/21 10:11 pm, Ben Hardill
      wrote:
    
    Hi,
      
      
      How have you configured mosquitto? Have you enabled persistence?
      
      
      If not how is the broker supposed to retain the clients session
      when you resart?
      
      
      On 20/04/2021 17:37, Bindu Rao wrote:
      
      Hi,
        
        
        I am using mosquitto broker with paho_mqtt client. I notice a
        problem in
        
        the following scenario:
        
        Usecase:
        
        - MQTT Protocol set to 5
        
        - Clean start = false and session expiry interval set to 30 secs
        
        
        I configure the client for publication and subscription on a
        topic.
        
        Terminate and restart mosquitto.
        
        
        Expected behaviour:
        
        - Should be able to receive messages on a subscribed topics
        after
        
        reconnection.
        
        Actual behaviour:
        
        - Session not remembered, hence need to be resubscribed even
        when clean
        
        the start is set to false by the client.
        
        I am using mosquitto - 2.0.10. The behaviour is perfectly ok
        when used
        
        with protocol 3.1.1.
        
        What configuration variables should be set in mosquitto.conf to
        get this
        
        working? Could you please provide inputs?
        
        Please note, that this works fine when I use other mqtt brokers.
        
        
        Thanks,
        
        Bindu
        
        _______________________________________________
        
        mosquitto-dev mailing list
        
        mosquitto-dev@xxxxxxxxxxx
        
        To unsubscribe from this list, visit
        https://www.eclipse.org/mailman/listinfo/mosquitto-dev