A destructor is present on this object, but not explicitly documented in the source.
clear cache (and close connections)
Remove connection from cache (without close).
Lookup connection.
put new stream in cache, evict old stream and return it. If nothing evicted return null. Returned(evicted) connection can be closed.
* Keep opened connections for HTTP. * It is actually cache over tuple(schema, host, port) -> connection * with limited number of items. * * Evict least used.