Module: HTTPX::Plugins::FiberConcurrency::ResolverNativeMethods
- Defined in:
- lib/httpx/plugins/fiber_concurrency.rb
Instance Method Summary collapse
Instance Method Details
#calculate_interests ⇒ Object
251 252 253 254 255 256 257 |
# File 'lib/httpx/plugins/fiber_concurrency.rb', line 251 def calculate_interests return if @queries.empty? return unless @queries.values.any?(&:current_context?) || @connections.any?(&:current_context?) super end |
#disconnect ⇒ Object
259 260 261 262 263 |
# File 'lib/httpx/plugins/fiber_concurrency.rb', line 259 def disconnect return unless @connections.all?(&:current_context?) super end |
#initial_call ⇒ Object
245 246 247 248 249 |
# File 'lib/httpx/plugins/fiber_concurrency.rb', line 245 def initial_call return unless @queries.values.any?(&:current_context?) || @connections.any?(&:current_context?) super end |
#on_io_error(e) ⇒ Object
265 266 267 268 269 270 271 272 |
# File 'lib/httpx/plugins/fiber_concurrency.rb', line 265 def on_io_error(e) # TODO: return super if this is not stream clsed in another thread log { "IO Erroring: #{e.}, current:#{@name}, queries:#{@queries.size}" } return unless @name super end |