I am trying to reproduce this problem and I don't seem to be able to crash the gateway as you guys have described here. Clearly I am missing something. My gateway is configured with the IP address of my machine and the port of the broker. Also using mosquitto version 1.4.8 (build date 14/02/2016 15:33:31.09). I cannot make the gateway hang if the MQTT broker is stopped or not started at all.
I have started the gateway with the new configurations and the broker stopped. Then started the broker and you can see the connection established and data comming in. I then stopped the broker and started it again for good measure. The connection is restablished and more data is coming in.
What am I doing different than you guys that I cannot crash my gateway?
c:\Program Files (x86)\mosquitto>mosquitto.exe -p 1883 -v
1466457786: mosquitto version 1.4.8 (build date 14/02/2016 15:33:31.09) starting
1466457786: Using default config.
1466457786: Opening ipv6 listen socket on port 1883.
1466457786: Opening ipv4 listen socket on port 1883.
1466457790: New connection from 10.1.1.140 on port 1883.
1466457790: New client connected from 10.1.1.140 as 00010B51 (c1, k20, u'').
1466457790: Sending CONNACK to 00010B51 (0, 0)
1466457800: Received PINGREQ from 00010B51
1466457800: Sending PINGRESP to 00010B51
1466457802: Received PUBLISH from 00010B51 (d0, q0, r0, m0, 'mcThings/beacon', ... (13 bytes))
1466457806: mosquitto version 1.4.8 terminating
c:\Program Files (x86)\mosquitto>mosquitto.exe -p 1883 -v
1466457812: mosquitto version 1.4.8 (build date 14/02/2016 15:33:31.09) starting
1466457812: Using default config.
1466457812: Opening ipv6 listen socket on port 1883.
1466457812: Opening ipv4 listen socket on port 1883.
1466457814: New connection from 10.1.1.140 on port 1883.
1466457814: New client connected from 10.1.1.140 as 00010B51 (c1, k20, u'').
1466457814: Sending CONNACK to 00010B51 (0, 0)
1466457822: Received PUBLISH from 00010B51 (d0, q0, r0, m0, 'mcThings/beacon', ... (13 bytes))
1466457822: Received PUBLISH from 00010B51 (d0, q0, r0, m0, 'mcThings/beacon', ... (13 bytes))
1466457822: Received PUBLISH from 00010B51 (d0, q0, r0, m0, 'mcThings/beacon', ... (13 bytes))
1466457822: Received PUBLISH from 00010B51 (d0, q0, r0, m0, 'mcThings/beacon', ... (13 bytes))
1466457823: Received PUBLISH from 00010B51 (d0, q0, r0, m0, 'mcThings/beacon', ... (13 bytes))
1466457823: Received PUBLISH from 00010B51 (d0, q0, r0, m0, 'mcThings/beacon', ... (13 bytes))
1466457823: Received PUBLISH from 00010B51 (d0, q0, r0, m0, 'mcThings/beacon', ... (13 bytes))
1466457823: Received PUBLISH from 00010B51 (d0, q0, r0, m0, 'mcThings/beacon', ... (13 bytes))
1466457823: Received PUBLISH from 00010B51 (d0, q0, r0, m0, 'mcThings/beacon', ... (13 bytes))
1466457823: mosquitto version 1.4.8 terminating
[ Guests cannot view attachments ]