Feature #9459 ยป net_http_connect.patch
| lib/net/http.rb | ||
|---|---|---|
|
private :do_start
|
||
|
def connect
|
||
|
if use_ssl?
|
||
|
@ssl_context = OpenSSL::SSL::SSLContext.new
|
||
|
end
|
||
|
if proxy? then
|
||
|
conn_address = proxy_address
|
||
|
conn_port = proxy_port
|
||
| ... | ... | |
|
ssl_parameters[SSL_ATTRIBUTES[i]] = value if value
|
||
|
end
|
||
|
end
|
||
|
@ssl_context = OpenSSL::SSL::SSLContext.new
|
||
|
@ssl_context.set_params(ssl_parameters)
|
||
|
D "starting SSL for #{conn_address}:#{conn_port}..."
|
||
|
s = OpenSSL::SSL::SSLSocket.new(s, @ssl_context)
|
||