class Net::SMTP
def tlsconnect(s, context)
def tlsconnect(s, context) verified = false s = ssl_socket(s, context) logging "TLS connection started" s.sync_close = true s.hostname = @tls_hostname || @address ssl_socket_connect(s, @open_timeout) verified = true s ensure s.close unless verified end