iPXE
|
Pooled connections. More...
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
void | pool_recycle (struct interface *intf) |
Recycle this connection after closing. More... | |
void | pool_reopen (struct interface *intf) |
Reopen a defunct connection. More... | |
void | pool_add (struct pooled_connection *pool, struct list_head *list, unsigned long expiry) |
Add connection to pool. More... | |
void | pool_del (struct pooled_connection *pool) |
Remove connection from pool. More... | |
void | pool_expired (struct retry_timer *timer, int over __unused) |
Close expired pooled connection. More... | |
Pooled connections.
Definition in file pool.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
void pool_recycle | ( | struct interface * | intf | ) |
Recycle this connection after closing.
intf | Data transfer interface |
Definition at line 41 of file pool.c.
References intf_poke(), and pool_recycle().
Referenced by http_transfer_complete(), and pool_recycle().
void pool_reopen | ( | struct interface * | intf | ) |
Reopen a defunct connection.
intf | Data transfer interface |
Definition at line 51 of file pool.c.
References intf_poke(), and pool_reopen().
Referenced by http_conn_socket_close(), and pool_reopen().
void pool_add | ( | struct pooled_connection * | pool, |
struct list_head * | list, | ||
unsigned long | expiry | ||
) |
Add connection to pool.
pool | Pooled connection |
list | List of pooled connections |
expiry | Expiry time |
Definition at line 63 of file pool.c.
References assert(), list_add_tail, list_empty, pool, and start_timer_fixed().
Referenced by http_conn_xfer_close().
void pool_del | ( | struct pooled_connection * | pool | ) |
Remove connection from pool.
pool | Pooled connection |
Definition at line 82 of file pool.c.
References INIT_LIST_HEAD, list_del, pool, POOL_RECYCLED, and stop_timer().
Referenced by http_conn_close(), and http_connect().
void pool_expired | ( | struct retry_timer * | timer, |
int over | __unused | ||
) |
Close expired pooled connection.
timer | Expiry timer |
over | Failure indicator |
Definition at line 101 of file pool.c.
References assert(), container_of, INIT_LIST_HEAD, list_del, list_empty, and pool.