[Issue 8957] Handling of TLS in async mode