11 juli 2021 kl. 12.14 skrev Eli Zaretskii : > Did you succeed in understanding what else has to happen before that > flag could be safely reset? Yes. The TCP connection needs to be established, the socket descriptor removed from write monitoring (because it is now connected) and added to read monitoring (so that we can get incoming traffic). This suggests a second solution: remove the condition on line 3277 on the grounds that since the TLS handshake succeeded, we are evidently connected; then remove the write monitoring and add the read monitoring before calling the sentinel: