bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
|
#include <CurlHandlePool.h>
Public Member Functions | |
dmrpp_easy_handle * | get_easy_handle (Chunk *chunk) |
void | initialize () |
Static Public Member Functions | |
static void | release_handle (dmrpp_easy_handle *h) |
Get a CURL easy handle, assign a URL and other values, use the handler, return it to the pool. This class helps take advantage of libcurl's built-in reuse capabilities (connection keep-alive, DNS pooling, etc.).
See https://ec.haxx.se/libcurl-connectionreuse.html for more information.
See d_max_easy_handles below for the limit on the total number of easy handles.
Definition at line 78 of file CurlHandlePool.h.
CurlHandlePool::~CurlHandlePool | ( | ) |
Definition at line 284 of file CurlHandlePool.cc.
dmrpp_easy_handle * CurlHandlePool::get_easy_handle | ( | Chunk * | chunk | ) |
Get a CURL easy handle to transfer data from
Definition at line 304 of file CurlHandlePool.cc.
void CurlHandlePool::initialize | ( | ) |
Definition at line 257 of file CurlHandlePool.cc.
|
static |
Release a DMR++ easy_handle. This returns the handle to the pool of handles that can be used for serial transfers or, with multi curl, for parallel transfers.
handle |
Definition at line 445 of file CurlHandlePool.cc.