Actions
Bug #17766
closedNet::HTTP verify_callback is called three times when opening a connection
Description
I've noticed that verify_callback is called three times when opening a connection. Here is an example: (Change "localhost" to whatever host can receive an HTTPS connection.)
ruby -e 'require "net/http"; Net::HTTP.start("localhost", 443, nil, nil, nil, nil, use_ssl: true, verify_callback: ->(v,s){puts "verify_callback"; true}) {}'
The output:
verify_callback
verify_callback
verify_callback
This requires awkwardness in the callback to account for the multiple calls per single connection.
Actions
Like0
Like0Like0