lib/guzzle/GuzzleHttp/Adapter/Curl/MultiAdapter.php
private function releaseMultiHandle($handle, $maxHandles)
    {
        $id = (int) $handle;

        if (count($this->multiHandles) <= $maxHandles) {
            $this->multiOwned[$id] = false;
        } elseif (isset($this->multiHandles[$id], $this->multiOwned[$id])) {
            // Prune excessive handles
            curl_multi_close($this->multiHandles[$id]);
            unset($this->multiHandles[$id], $this->multiOwned[$id]);
        }
    }
private function releaseMultiHandle($handle, $maxHandles)
    {
        $id = (int) $handle;

        if (count($this->multiHandles) <= $maxHandles) {
            $this->multiOwned[$id] = false;
        } elseif (isset($this->multiHandles[$id], $this->multiOwned[$id])) {
            // Prune excessive handles
            curl_multi_close($this->multiHandles[$id]);
            unset($this->multiHandles[$id], $this->multiOwned[$id]);
        }
    }
private function releaseMultiHandle ( $ handle , $ maxHandles ) { $ id = ( int ) $ handle ; if ( count ( $ this -> multiHandles ) <= $ maxHandles ) { $ this -> multiOwned [ $ id ] = false ; } elseif ( isset ( $ this -> multiHandles [ $ id ] , $ this -> multiOwned [ $ id ] ) ) { // Prune excessive handles curl_multi_close ( $ this -> multiHandles [ $ id ] ) ; unset ( $ this -> multiHandles [ $ id ] , $ this -> multiOwned [ $ id ] ) ; } }
Releases a curl_multi handle back into the cache and removes excess cache

@param resource $handle Curl multi handle to remove
@param int $maxHandles (Optional) Maximum number of existing multiHandles to allow before pruning.
Releases a curl_multi handle back into the cache and removes excess cache