Sha256: 7aec8034f04ef26fb8ef6ae94492e7d16f612e7de19fd588af233474ed8ad276
Contents?: true
Size: 641 Bytes
Versions: 21
Compression:
Stored size: 641 Bytes
Contents
# encoding: utf-8 module Net class SMTP # This is a backport of r30294 from ruby trunk because of a bug in net/smtp. # http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30294 # # Fixed in what will be Ruby 1.9.3 - tlsconnect also does not exist in some early versions of ruby begin alias_method :original_tlsconnect, :tlsconnect def tlsconnect(s) verified = false begin original_tlsconnect(s).tap { verified = true } ensure unless verified s.close rescue nil end end end rescue NameError end end end
Version data entries
21 entries across 20 versions & 9 rubygems