zephyr/subsys/net/lib/mqtt
Robert Lubos 504cc436dd net: mqtt: Close the socket right after sending disconnect message
After sending the MQTT disconnect message, no response is expected,
therefore it makes little sense to delay the socket closure.

So far it was expected to call `mqtt_input` function after calling
`mqtt_disconnect` in order to close the socket, which is
counter-intuitive. Simplify this, by closing the socket rightaway
in the `mqtt_disconnect` function.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2020-01-16 21:02:28 -05:00
..
CMakeLists.txt
Kconfig
mqtt_decoder.c
mqtt_encoder.c
mqtt_internal.h net: mqtt: Close the socket right after sending disconnect message 2020-01-16 21:02:28 -05:00
mqtt_os.h
mqtt_rx.c
mqtt_transport_socket_tcp.c
mqtt_transport_socket_tls.c
mqtt_transport_websocket.c
mqtt_transport.c
mqtt_transport.h
mqtt.c net: mqtt: Close the socket right after sending disconnect message 2020-01-16 21:02:28 -05:00