Currently, a failed TLS negociation for a server socket calles bgerror.

I would appreciate, if there would be an option to pass a command prefix to be called in case of an error:

::tcltls::tls_socket -errorcmd [namespace code TLSError]


More information and proposal may be seen in the linked TWAPI ticket:


Thank you,
Harald