Land #10303, HttpClient Rex::ConnectionError fix

4.x
William Vu 2018-07-25 18:02:44 -05:00 committed by Metasploit
parent 10ffd286d9
commit c3469b0c80
No known key found for this signature in database
GPG Key ID: CDFB5FA52007B954
1 changed files with 6 additions and 0 deletions

View File

@ -325,6 +325,9 @@ module Exploit::Remote::HttpClient
rescue ::Errno::EPIPE, ::Timeout::Error => e
print_line(e.message) if datastore['HttpTrace']
nil
rescue Rex::ConnectionError => e
vprint_error(e.to_s)
nil
rescue ::Exception => e
print_line(e.message) if datastore['HttpTrace']
raise e
@ -375,6 +378,9 @@ module Exploit::Remote::HttpClient
rescue ::Errno::EPIPE, ::Timeout::Error => e
print_line(e.message) if datastore['HttpTrace']
nil
rescue Rex::ConnectionError => e
vprint_error(e.to_s)
nil
rescue ::Exception => e
print_line(e.message) if datastore['HttpTrace']
raise e