lib/arachni/http/request.rb in arachni-1.5.1 vs lib/arachni/http/request.rb in arachni-1.6.0
- old
+ new
@@ -1,7 +1,7 @@
=begin
- Copyright 2010-2017 Sarosys LLC <http://www.sarosys.com>
+ Copyright 2010-2022 Ecsypno <http://www.ecsypno.com>
This file is part of the Arachni Framework project and is subject to
redistribution and commercial restrictions. Please see the Arachni Framework
web site for more information on licensing and terms of use.
=end
@@ -830,10 +830,16 @@
private
def client_run
# Set #on_complete so that the #response will be set.
on_complete {}
- to_typhoeus.run
+
+ treq = self.to_typhoeus
+
+ hydra = (Thread.current[:client_run_hydra] ||= Typhoeus::Hydra.new)
+ hydra.queue treq
+ hydra.run
+
self.response
end
def fill_in_data_from_typhoeus_response( response )
# Only grab the last data.