We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In http_client.py we have the following:
class SynchronousHttpClient(HttpClient): """Synchronous HTTP client implementation. """ def __init__(self): self.session = requests.Session() self.authenticator = None self.websockets = set()
So every requests creates a new connection. What if we add there connection pooling and caching? Something like this:
def __init__(self): from requests.adapters import HTTPAdapter self.session = requests.Session() self.session.mount('http://', HTTPAdapter(pool_connections=50, pool_maxsize=100)) self.authenticator = None self.websockets = set()
But we need a way to pass these parameters when we initialize ari client. What do you think?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In http_client.py we have the following:
So every requests creates a new connection.
What if we add there connection pooling and caching? Something like this:
But we need a way to pass these parameters when we initialize ari client.
What do you think?
The text was updated successfully, but these errors were encountered: