ssl_timeout cannot be set in HTTPS request
Net::HTTPS defines SSL_ATTRIBUTES which, as I understand, are attributes that can be set on an HTTP object and includes
However when applying these attributes on the SSLContext, the following exception is raised:
NoMethodError: undefined method
ssl_timeout=' for #<OpenSSL::SSL::SSLContext:0x6511fc>block in set_params'
from /usr/local/bin/irb:12:in `'
The code being run is:
http = Net::HTTP.new("example.com")
http.use_ssl = true
http.ssl_timeout = 1
http.request('hi') # exception is raised here
SSLContext does not implement ssl_timeout= but it does have timeout=, so this attribute should be handled specially, or perhaps be aliased in SSLContext?