| Thanks folks,
 I solved the problem by giving my client an ID string. Seems like
      the server was rejecting it because of this...is this possible?
      And yes, the server setups must have been different...
 
 regards,
 Pierre
 
 On 05/02/15 07:46, Manuel Domínguez Dorado wrote:
 
 
      Hi Pierre, is your production server behind a proxy
        (haproxy, for instance)? I had a similar problem that was solved
        changing the haproxy timeouts to a greater value. El 04/02/2015 21:42, "Roger Light" <roger@xxxxxxxxxx >
        escribió:
         Hi Pierre,
 From mosquitto.h you can see that the return code 7 is
 MOSQ_ERR_CONN_LOST, which means the client thinks the broker
          dropped
 the connection. Are you sure the staging and production
          servers are
 the same?
 
 Cheers,
 
 Roger
 
 
 On Wed, Feb 4, 2015 at 6:05 AM,  <pierre@xxxxxxxxxxxxxxxxx>
          wrote:
 > Hi,
 >
 > I'm running into a problem using libmosquitto (with c++
          wrapper) and an
 > MQTT broker (I believe it's RabbitMQ)
 >
 > Well, everything worked fine on our staging server, and
          now I've moved to
 > a production server and I'm getting weird disconnects
          from the broker.
 >
 > Basically I successfully connect, but then immediately
          afterwards I get my
 > mosquitto disconnect callback triggered, with a return
          code of 7.
 >
 > Now from the docs, the rc integer value indicates the
          reason for the
 > disconnect.
 >
 > "A value of 0 means the client has called
          mosquitto_disconnect.  Any other
 > value indicates that the disconnect is unexpected."
 >
 > What could cause a disconnect with a code of 7? My
          software works
 > perfectly fine with our staging MQTT broker, just not on
          the production
 > server.
 >
 > Using the command-line mosquitto_sub tool, I can connect
          to the broker
 > without any problems (on this production server).
 >
 > I'm really stumped....any help would be greatly
          appreciated!
 >
 > I'm using this wrapper to connect by the way if that's
          useful:
 > https://github.com/hideyukisaito/ofxMosquitto
 >
 > _______________________________________________
 > mosquitto-dev mailing list
 > mosquitto-dev@xxxxxxxxxxx
 > To change your delivery options, retrieve your password,
          or unsubscribe from this list, visit
 > https://dev.eclipse.org/mailman/listinfo/mosquitto-dev
 _______________________________________________
 mosquitto-dev mailing list
 mosquitto-dev@xxxxxxxxxxx
 To change your delivery options, retrieve your password, or
          unsubscribe from this list, visit
 https://dev.eclipse.org/mailman/listinfo/mosquitto-dev
 
 
 _______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev 
 
 |