3 ms·
> People tend to use requests, which is better, but still doesn't support normal keep-alives, so it's a new connection per request. What on earth is normal kee
by unmole 4y ago
> People tend to use requests, which is better, but still doesn't support normal keep-alives, so it's a new connection per request.
What on earth is normal keep-alives in this context? And you can most certainly reuse connections with Session objects: https://requests.readthedocs.io/en/latest/user/advanced/ https://requests.readthedocs.io/en/latest/user/advanced/
- tyingq 4y agoI had remembered incorrectly. Urllib (the only one of the three that ships with python) is hobbled this way, it sends Connection: Close with every request. Urllib3 and requests don't have that issue.