Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Introspecting information about last wills in Mosquitto

If you want to test what happens when the network
fails, best to fail the network.
Thanks for your input.

For the benefit of archaeologists digging through the archives, here's the solution I opted for:
- Use socat to run a TCP bridge: socat TCP-LISTEN:18830,fork TCP:
- Configure the client to connect to the bridge, rather than directly to the broker
- Terminate socat's process when I want the failure to occur

This is simple and easy to control.

Back to the top