Use connection pooling for Python client's requests

Description

I was using cProfiler with the Python client to help diagnose and discovered that the python client was spending about 1-2 seconds per request performing an SSL handshake.
While talking with , he suggested that I configure the requests library to use connection pooling when contacting the Synapse backend. This change would allow the Python client to reuse the same connection for successive requests and reduce the amount if time it takes for each API calls to complete after the SSL handshake is completed.

Environment

None

Status

Assignee

Ziming Dong

Reporter

Ziming Dong

Labels

None

Validator

Kenneth Daily

Release Version History

None

Fix versions

Priority

Critical