Here are the logs from the new version.
It seems you are logging now the state of the "isReady" variable but the reconnect is not faster than before...
18.07.2023 02:03:27: ERROR - TTMSMQTTNetworkConnection -- Exception reading data from the socket.
Die Verbindung wurde erfolgreich geschlossen.
18.07.2023 02:03:43: INFO - TTMSMQTTKeepAliveThread -- Keep Alive thread - Resumed
18.07.2023 02:03:43: INFO - TTMSMQTTClient -- CLIENT- Connecting ---------------------------
18.07.2023 02:03:43: INFO - TTMSMQTTCommThread -- Comm thread - Resumed
18.07.2023 02:03:43: DEBUG - TTMSMQTTClient -- CLIENT- Handeling Outgoing Packet ---------------------------
18.07.2023 02:03:43: DEBUG - TTMSMQTTClient -- CLIENT- Sending packet to WriterThread ---------------------------
18.07.2023 02:03:43: DEBUG - TTMSMQTTClient -- CLIENT- Packet added to queue ---------------------------
18.07.2023 02:03:44: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36489 Type:PUBLISH Qos:1 - SENDING - attempt: 0 ---
18.07.2023 02:03:44: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't write the data because IsReady was false.
18.07.2023 02:03:44: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36489 Type:PUBLISH Qos:1 - PACKET FAILED TO SEND.
18.07.2023 02:03:44: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't read the data because IsReady was false.
18.07.2023 02:03:44: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36490 Type:PUBLISH Qos:1 - SENDING - attempt: 0 ---
18.07.2023 02:03:44: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't write the data because IsReady was false.
18.07.2023 02:03:44: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36490 Type:PUBLISH Qos:1 - PACKET FAILED TO SEND.
18.07.2023 02:03:44: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't read the data because IsReady was false.
18.07.2023 02:03:44: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36491 Type:PUBLISH Qos:1 - SENDING - attempt: 0 ---
18.07.2023 02:03:44: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't write the data because IsReady was false.
18.07.2023 02:03:44: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36491 Type:PUBLISH Qos:1 - PACKET FAILED TO SEND.
18.07.2023 02:03:44: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't read the data because IsReady was false.
18.07.2023 02:03:44: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36492 Type:PUBLISH Qos:1 - SENDING - attempt: 0 ---
18.07.2023 02:03:44: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't write the data because IsReady was false.
18.07.2023 02:03:44: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36492 Type:PUBLISH Qos:1 - PACKET FAILED TO SEND.
18.07.2023 02:03:44: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't read the data because IsReady was false.
18.07.2023 02:03:44: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36493 Type:PUBLISH Qos:1 - SENDING - attempt: 0 ---
18.07.2023 02:03:44: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't write the data because IsReady was false.
18.07.2023 02:03:44: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36493 Type:PUBLISH Qos:1 - PACKET FAILED TO SEND.
18.07.2023 02:03:44: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't read the data because IsReady was false.
18.07.2023 02:03:44: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36494 Type:PUBLISH Qos:1 - SENDING - attempt: 0 ---
18.07.2023 02:03:44: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't write the data because IsReady was false.
18.07.2023 02:03:44: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36494 Type:PUBLISH Qos:1 - PACKET FAILED TO SEND.
18.07.2023 02:03:44: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't read the data because IsReady was false.
...
18.07.2023 02:03:46: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36563 Type:PUBLISH Qos:1 - SENDING - attempt: 0 ---
18.07.2023 02:03:46: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't write the data because IsReady was false.
18.07.2023 02:03:46: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36563 Type:PUBLISH Qos:1 - PACKET FAILED TO SEND.
18.07.2023 02:03:46: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't read the data because IsReady was false.
18.07.2023 02:03:46: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36564 Type:PUBLISH Qos:1 - SENDING - attempt: 0 ---
18.07.2023 02:03:46: INFO - TTMSMQTTKeepAliveThread -- Keep Alive thread - No Connection. Requesting Reconnect.
18.07.2023 02:03:46: INFO - TTMSMQTTClient -- CLIENT- Connecting ---------------------------
18.07.2023 02:03:46: INFO - TTMSMQTTCommThread -- Comm thread - Resumed
18.07.2023 02:03:46: DEBUG - TTMSMQTTClient -- CLIENT- Handeling Outgoing Packet ---------------------------
18.07.2023 02:03:46: DEBUG - TTMSMQTTClient -- CLIENT- Sending packet to WriterThread ---------------------------
18.07.2023 02:03:46: DEBUG - TTMSMQTTClient -- CLIENT- Packet added to queue ---------------------------
18.07.2023 02:03:46: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't write the data because IsReady was false.
18.07.2023 02:03:46: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36564 Type:PUBLISH Qos:1 - PACKET FAILED TO SEND.
18.07.2023 02:03:46: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't read the data because IsReady was false.
18.07.2023 02:03:46: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36565 Type:PUBLISH Qos:1 - SENDING - attempt: 0 ---
18.07.2023 02:03:46: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't write the data because IsReady was false.
18.07.2023 02:03:46: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36565 Type:PUBLISH Qos:1 - PACKET FAILED TO SEND.
18.07.2023 02:03:46: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't read the data because IsReady was false.
...
18.07.2023 02:03:51: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36723 Type:PUBLISH Qos:1 - SENDING - attempt: 0 ---
18.07.2023 02:03:51: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't write the data because IsReady was false.
18.07.2023 02:03:51: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36723 Type:PUBLISH Qos:1 - PACKET FAILED TO SEND.
18.07.2023 02:03:51: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't read the data because IsReady was false.
18.07.2023 02:03:51: INFO - TTMSMQTTKeepAliveThread -- Keep Alive thread - No Connection. Requesting Reconnect.
18.07.2023 02:03:51: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36724 Type:PUBLISH Qos:1 - SENDING - attempt: 0 ---
18.07.2023 02:03:51: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't write the data because IsReady was false.
18.07.2023 02:03:51: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36724 Type:PUBLISH Qos:1 - PACKET FAILED TO SEND.
18.07.2023 02:03:51: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't read the data because IsReady was false.
...
18.07.2023 02:03:56: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36883 Type:PUBLISH Qos:1 - SENDING - attempt: 0 ---
18.07.2023 02:03:56: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't write the data because IsReady was false.
18.07.2023 02:03:56: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36883 Type:PUBLISH Qos:1 - PACKET FAILED TO SEND.
18.07.2023 02:03:56: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't read the data because IsReady was false.
18.07.2023 02:03:56: INFO - TTMSMQTTKeepAliveThread -- Keep Alive thread - No Connection. Requesting Reconnect.
...
18.07.2023 02:03:59: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36968 Type:PUBLISH Qos:1 - SENDING - attempt: 0 ---
18.07.2023 02:03:59: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't write the data because IsReady was false.
18.07.2023 02:03:59: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36968 Type:PUBLISH Qos:1 - PACKET FAILED TO SEND.
18.07.2023 02:03:59: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't read the data because IsReady was false.
18.07.2023 02:03:59: INFO - TTMSMQTTKeepAliveThread -- Keep Alive thread - Resumed
18.07.2023 02:03:59: INFO - TTMSMQTTClient -- CLIENT- Connecting ---------------------------
18.07.2023 02:03:59: INFO - TTMSMQTTCommThread -- Comm thread - Resumed
18.07.2023 02:03:59: DEBUG - TTMSMQTTClient -- CLIENT- Handeling Outgoing Packet ---------------------------
18.07.2023 02:03:59: DEBUG - TTMSMQTTClient -- CLIENT- Sending packet to WriterThread ---------------------------
18.07.2023 02:03:59: DEBUG - TTMSMQTTClient -- CLIENT- Packet added to queue ---------------------------
18.07.2023 02:03:59: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36969 Type:PUBLISH Qos:1 - SENDING - attempt: 0 ---
18.07.2023 02:03:59: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't write the data because IsReady was false.
18.07.2023 02:03:59: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 36969 Type:PUBLISH Qos:1 - PACKET FAILED TO SEND.
18.07.2023 02:03:59: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't read the data because IsReady was false.
...
18.07.2023 02:04:01: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 37026 Type:PUBLISH Qos:1 - SENDING - attempt: 0 ---
18.07.2023 02:04:01: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't write the data because IsReady was false.
18.07.2023 02:04:01: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 37026 Type:PUBLISH Qos:1 - PACKET FAILED TO SEND.
18.07.2023 02:04:01: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't read the data because IsReady was false.
18.07.2023 02:04:01: INFO - TTMSMQTTKeepAliveThread -- Keep Alive thread - No Connection. Requesting Reconnect.
18.07.2023 02:04:01: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 37027 Type:PUBLISH Qos:1 - SENDING - attempt: 0 ---
18.07.2023 02:04:01: INFO - TTMSMQTTClient -- CLIENT- Connecting ---------------------------
18.07.2023 02:04:01: INFO - TTMSMQTTCommThread -- Comm thread - Resumed
18.07.2023 02:04:01: DEBUG - TTMSMQTTClient -- CLIENT- Handeling Outgoing Packet ---------------------------
18.07.2023 02:04:01: DEBUG - TTMSMQTTClient -- CLIENT- Sending packet to WriterThread ---------------------------
18.07.2023 02:04:01: DEBUG - TTMSMQTTClient -- CLIENT- Packet added to queue ---------------------------
18.07.2023 02:04:01: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't write the data because IsReady was false.
18.07.2023 02:04:01: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 37027 Type:PUBLISH Qos:1 - PACKET FAILED TO SEND.
18.07.2023 02:04:01: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't read the data because IsReady was false.
18.07.2023 02:04:01: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 37028 Type:PUBLISH Qos:1 - SENDING - attempt: 0 ---
18.07.2023 02:04:01: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't write the data because IsReady was false.
18.07.2023 02:04:01: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 37028 Type:PUBLISH Qos:1 - PACKET FAILED TO SEND.
18.07.2023 02:04:01: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't read the data because IsReady was false.
...
18.07.2023 02:06:05: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 40851 Type:PUBLISH Qos:1 - SENDING - attempt: 0 ---
18.07.2023 02:06:05: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't write the data because IsReady was false.
18.07.2023 02:06:05: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 40851 Type:PUBLISH Qos:1 - PACKET FAILED TO SEND.
18.07.2023 02:06:05: DEBUG - TTMSMQTTNetworkConnection -- The connection couldn't read the data because IsReady was false.
18.07.2023 02:06:05: INFO - TTMSMQTTNetworkConnection -- Connecting Indy TCP Client
18.07.2023 02:06:05: INFO - TTMSMQTTNetworkConnection -- Socket allocated ...
18.07.2023 02:06:05: DEBUG - TTMSMQTTNetworkConnection -- TIdSSLIOHandlerSocketOpenSSL - resolving...
18.07.2023 02:06:05: DEBUG - TTMSMQTTNetworkConnection -- TIdSSLIOHandlerSocketOpenSSL - connecting...
18.07.2023 02:06:05: DEBUG - TTMSMQTTNetworkConnection -- TIdTCPClient - connected...
18.07.2023 02:06:05: DEBUG - TTMSMQTTNetworkConnection -- TCP connection established.
18.07.2023 02:06:05: DEBUG - TTMSMQTTCommThread -- Comm thread - Packet: 0 Type:CONNECT Qos:0 - SENDING ---