diff --git a/src/slic3r/Utils/OrcaMqttConnection.cpp b/src/slic3r/Utils/OrcaMqttConnection.cpp index d33e4182c6..983f7b9dd8 100644 --- a/src/slic3r/Utils/OrcaMqttConnection.cpp +++ b/src/slic3r/Utils/OrcaMqttConnection.cpp @@ -569,6 +569,9 @@ void OrcaMqttConnection::connect_and_read() { ws_read(*connection, buffer, connack_error); if (connack_error) throw boost::system::system_error(connack_error, "read Orca MQTT CONNACK"); + // Beast leaves this expiry armed after the synchronous CONNACK read above; + // disable it before starting the long-lived async WebSocket session. + expires_never(*connection); const std::string connack = boost::beast::buffers_to_string(buffer.data()); // rc: 0 accepted, 1..5 refusal, -1 malformed/not a CONNACK. const int rc = (connack.size() == 4 && static_cast(connack[0]) == 0x20)