lib/spidr/agent.rb in spidr-0.4.0 vs lib/spidr/agent.rb in spidr-0.4.1

- old
+ new

@@ -6,10 +6,11 @@ require 'spidr/session_cache' require 'spidr/cookie_jar' require 'spidr/auth_store' require 'spidr/spidr' +require 'openssl' require 'net/http' require 'set' module Spidr class Agent @@ -682,11 +683,12 @@ yield @sessions[url], path, headers rescue SystemCallError, Timeout::Error, SocketError, - Net::HTTPBadResponse, - IOError + IOError, + OpenSSL::SSL::SSLError, + Net::HTTPBadResponse @sessions.kill!(url) failed(url) return nil