TCP Sockets - calling startTls() and awaiting socket hangs

For Workes & Pages, what is the name of the domain?

redactedDomain.com

What is the error number?

No clear error number. The socket hangs until a timeout is reached or request is cancelled.

What is the error message?

No clear error message.

What is the issue or error you’re encountering

Hey all, having an issue getting startTls() to cooperate. I can open a socket just fine, open a writer/reader and send EHLO myDomain.com\r\n and again with STARTTLS\r\n. I then open my secure socket by calling startTls. If I await secureSocket.opened, it hangs indefinitely. If I skip that await, and attempt the next write (also EHLO) I get the error TypeError: This WritableStream is currently locked to a writer.

What steps have you taken to resolve the issue?

  1. Attempted to skip awaiting socket opening => writer throws an error
  2. Attempted skipping starttls altogether. I have gotten SMTP working with explicit tls on with port 465. For smtp-mail.outlook.com, it does not appear this is an option.