HH\curl_destroy_pool

Destroys a cURL connection pool

namespace HH;

function curl_destroy_pool(
  string $poolName,
): bool;

curl_init_pooled() calls that are already waiting on a handle will still complete, but no new calls will receive a pooled handle.

Parameters

  • string $poolName - The name of the connection pool to destroy.

Returns

  • bool - - Returns true on success, or false if the pool does not exist.