Persistent connections in Python2 HTTPAdapter are indeed a mixed bag. One thing that worked for me was setting `pool_connections` to a lower number and using `pool_maxsize` to limit the pool.
For timeouts, I’ve found that setting `connect_timeout` and `read_timeout` separately helps. Sometimes the library just doesn’t respect the global timeout, so breaking it down can make a difference.
Also, have you tried using `socket.setdefaulttimeout()`? It’s a bit of a hack, but it can help enforce timeouts at a lower level.
For timeouts, I’ve found that setting `connect_timeout` and `read_timeout` separately helps. Sometimes the library just doesn’t respect the global timeout, so breaking it down can make a difference.
Also, have you tried using `socket.setdefaulttimeout()`? It’s a bit of a hack, but it can help enforce timeouts at a lower level.
