Context:
Mostly by following the conversation/links in
https://github.com/psf/requests/pull/6667
import time regressions
https://github.com/psf/requests/issues/6790
https://github.com/psf/requests/pull/6791
sslcontext in pool manager regression
https://github.com/psf/requests/issues/6715
Note: test packages used above are available in ppa:mfo/lp2091732-lp2091733,
but are still missing patches to address reports of functional regressions
in the upstream project, which plans to revert this change (6667/6767 [2,3]),
although this has not yet been applied for some months now.
Most sho
Noble:
---
Before:
$ dpkg -s python3-requests | grep -e Package: -e Version:
Package: python3-requests
Version: 2.31.0+dfsg-1ubuntu1
$ ./test-https-concurrent.py
Run: 0, Time: 3774 ms
Run: 1, Time: 3604 ms
Run: 2, Time: 3618 ms
Run: 3, Time: 3692 ms
Run: 4, Time: 3649 ms
Run: 5, Time: 3501 ms
Ru
Jammy:
---
Before:
$ dpkg -s python3-requests python3-urllib3 | grep -e Package: -e Version:
Package: python3-requests
Version: 2.25.1+dfsg-2ubuntu0.1
Package: python3-urllib3
Version: 1.26.5-1~exp1ubuntu0.2
$ ./test-https-concurrent.py
Run: 0, Time: 3735 ms
Run: 1, Time: 4072 ms
Run: 2, Time: 4
$ cat ./test-https-concurrent.py
#!/usr/bin/python3
import requests
import concurrent.futures
import time
from statistics import mean, median
def run_https_get():
return requests.get('https://example.com').content
def run_https_get_concurrent():
with concurrent.futures.ThreadPoolExecutor(