~javier-lopez/ubuntu/vivid/ruby1.9.1/fix-1426828

« back to all changes in this revision

Viewing changes to lib/net/smtp.rb

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2013-11-25 09:59:41 UTC
  • mfrom: (21.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20131125095941-aou3ymnwm79em09y
Tags: 1.9.3.448-1ubuntu1
* Merge from Debian. Remaining changes:
  - debian/control: Add ca-certificates to libruby1.9.1 depends so that
    rubygems can perform certificate verification
  - debian/rules: Don't install SSL certificates from upstream sources
  - debian/patches/20120927-rubygems_disable_upstream_certs.patch: Use
    /etc/ssl/certs/ca-certificates.crt for the trusted CA certificates.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# NOTE: You can find Japanese version of this document at:
15
15
# http://www.ruby-lang.org/ja/man/html/net_smtp.html
16
16
#
17
 
# $Id: smtp.rb 31710 2011-05-23 00:21:10Z drbrain $
 
17
# $Id: smtp.rb 40712 2013-05-14 01:33:34Z usa $
18
18
#
19
19
# See Net::SMTP for documentation.
20
20
#
172
172
  #
173
173
  class SMTP
174
174
 
175
 
    Revision = %q$Revision: 31710 $.split[1]
 
175
    Revision = %q$Revision: 40712 $.split[1]
176
176
 
177
177
    # The default SMTP port number, 25.
178
178
    def SMTP.default_port
364
364
 
365
365
    # Seconds to wait while attempting to open a connection.
366
366
    # If the connection cannot be opened within this time, a
367
 
    # TimeoutError is raised.
 
367
    # TimeoutError is raised. The default value is 30 seconds.
368
368
    attr_accessor :open_timeout
369
369
 
370
370
    # Seconds to wait while reading one block (by one read(2) call).
371
371
    # If the read(2) call does not complete within this time, a
372
 
    # TimeoutError is raised.
 
372
    # TimeoutError is raised. The default value is 60 seconds.
373
373
    attr_reader :read_timeout
374
374
 
375
375
    # Set the number of seconds to wait until timing-out a read(2)