Closed vlm closed 7 years ago
The patch looks good. There's one more thing to check though: After detach have been called, all the pending data from TLS protocol must be cleaned up and the underlying socket can be used to run a different protocol. I am not familiar with OpenSSL, so it's hard for me to tell whether that's the case. btls_wait_close() looks a bit suspicious though. Can you have a look?
@sustrik , sorry I am missing what are you trying to say here. Could you rephrase?
Oh. This patch (or some modification thereof) is necessary to be able to cleanly close the file descriptors. There's no way to cleanly close TLS without this patch.
The attach-after-detach, or use-tcp-after-dropping-tls is something that has to be tested, but it is a secondary problem.
Ok, merged. Let's keep the cleanup problem in mind though.
According to revamp: