View Source hackney_pool (hackney v1.23.0)

pool of sockets connections

Summary

Functions

release a socket in the pool
fetch a socket from the pool
return a child spec suitable for embeding your pool in the supervisor
get the number of connections in the pool
get the number of connections in the pool for {Host0, Port, Transport}
get max pool size
change the pool size
change the connection timeout
stop a pool
get timeout

Functions

checkin(_, Socket)

release a socket in the pool

checkout(Host, Port, Transport, Client)

fetch a socket from the pool

child_spec(Name, Options0)

return a child spec suitable for embeding your pool in the supervisor

code_change(OldVsn, State, Extra)

count(Name)

get the number of connections in the pool

count(Name, _)

get the number of connections in the pool for {Host0, Port, Transport}

find_pool(Name)

get_stats(Pool)

handle_call(_, From, State)

handle_cast(Msg, State)

handle_info(_, State)

init(_)

max_connections(Name)

get max pool size

notify(Pool, Msg)

set_max_connections(Name, NewSize)

change the pool size

set_timeout(Name, NewTimeout)

change the connection timeout

start()

start_link(Name, Options0)

start_pool(Name, Options)

start a pool

stop_pool(Name)

stop a pool

terminate(Reason, State)

timeout(Name)

get timeout