mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04:00
keeping them around was resulting in some busy loops on timer events (i.e. retry after), making them unreliable, innacurate and CPU draining. they're now kept out whenever they're inactive.
42 lines
975 B
Plaintext
42 lines
975 B
Plaintext
module HTTPX
|
|
class Pool
|
|
def empty?: () -> void
|
|
|
|
def next_tick: () -> void
|
|
|
|
def close: (*Array[Connection]) -> void
|
|
|
|
def init_connection: (Connection, Options) -> void
|
|
|
|
def find_connection: (generic_uri, Options) -> Connection?
|
|
|
|
def deactivate: (*Array[Connection]) -> void
|
|
|
|
private
|
|
|
|
def initialize: () -> untyped
|
|
|
|
def resolve_connection: (Connection) -> void
|
|
|
|
def on_resolver_connection: (Connection) -> void
|
|
|
|
def on_resolver_error: (Connection, StandardError) -> void
|
|
|
|
def on_resolver_close: (resolver) -> void
|
|
|
|
def register_connection: (Connection) -> void
|
|
|
|
def unregister_connection: (Connection) -> void
|
|
|
|
def select_connection: (resolver | Connection connection) -> void
|
|
|
|
def deselect_connection: (resolver | Connection connection) -> void
|
|
|
|
def coalesce_connections: (Connection, Connection) -> void
|
|
|
|
def next_timeout: () -> Numeric?
|
|
|
|
def find_resolver_for: (Connection) -> resolver
|
|
end
|
|
end
|